File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
lib/internal/Magento/Framework/App/View/Asset Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
namespace Magento \Framework \App \View \Asset ;
7
+
7
8
use Magento \Framework \App \Filesystem \DirectoryList ;
8
9
use Magento \Framework \View \Asset ;
10
+
9
11
/**
10
12
* A publishing service for view assets
11
13
*/
@@ -14,11 +16,14 @@ class Publisher
14
16
/**
15
17
* @var \Magento\Framework\Filesystem
16
18
*/
19
+
17
20
protected $ filesystem ;
21
+
18
22
/**
19
23
* @var MaterializationStrategy\Factory
20
24
*/
21
25
private $ materializationStrategyFactory ;
26
+
22
27
/**
23
28
* @param \Magento\Framework\Filesystem $filesystem
24
29
* @param MaterializationStrategy\Factory $materializationStrategyFactory
@@ -30,6 +35,7 @@ public function __construct(
30
35
$ this ->filesystem = $ filesystem ;
31
36
$ this ->materializationStrategyFactory = $ materializationStrategyFactory ;
32
37
}
38
+
33
39
/**
34
40
* {@inheritdoc}
35
41
*/
@@ -41,6 +47,7 @@ public function publish(Asset\LocalInterface $asset)
41
47
}
42
48
return $ this ->publishAsset ($ asset );
43
49
}
50
+
44
51
/**
45
52
* Publish the asset
46
53
*
@@ -56,4 +63,4 @@ private function publishAsset(Asset\LocalInterface $asset)
56
63
$ strategy = $ this ->materializationStrategyFactory ->create ($ asset );
57
64
return $ strategy ->publishFile ($ rootDir , $ targetDir , $ source , $ destination );
58
65
}
59
- }
66
+ }
You can’t perform that action at this time.
0 commit comments