File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lib/internal/Magento/Framework/View/Asset/MergeStrategy Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,21 @@ class Direct implements \Magento\Framework\View\Asset\MergeStrategyInterface
33
33
/**
34
34
* @var \Magento\Framework\Math\Random
35
35
*/
36
- protected $ mathRandom ;
36
+ private $ mathRandom ;
37
37
38
38
/**
39
39
* @param \Magento\Framework\Filesystem $filesystem
40
40
* @param \Magento\Framework\View\Url\CssResolver $cssUrlResolver
41
+ * @param \Magento\Framework\Math\Random|null $mathRandom
41
42
*/
42
43
public function __construct (
43
44
\Magento \Framework \Filesystem $ filesystem ,
44
45
\Magento \Framework \View \Url \CssResolver $ cssUrlResolver ,
45
- \Magento \Framework \Math \Random $ mathRandom
46
+ \Magento \Framework \Math \Random $ mathRandom = null
46
47
) {
47
48
$ this ->filesystem = $ filesystem ;
48
49
$ this ->cssUrlResolver = $ cssUrlResolver ;
49
- $ this ->mathRandom = $ mathRandom ;
50
+ $ this ->mathRandom = $ mathRandom ?: \ Magento \ Framework \ App \ObjectManager:: getInstance ()-> get (\ Magento \ Framework \ Math \Random::class); ;
50
51
}
51
52
52
53
/**
You can’t perform that action at this time.
0 commit comments