1 | <?php namespace Modules\Core\Foundation\Theme; |
||
3 | class AssetPublisher |
||
4 | { |
||
5 | /** |
||
6 | * @var \Illuminate\Filesystem\Filesystem |
||
7 | */ |
||
8 | protected $finder; |
||
9 | /** |
||
10 | * @var ThemeManager |
||
11 | */ |
||
12 | protected $repository; |
||
13 | |||
14 | /** |
||
15 | * @var Theme |
||
16 | */ |
||
17 | private $theme; |
||
18 | |||
19 | /** |
||
20 | * @param Theme $theme |
||
21 | */ |
||
22 | public function __construct(Theme $theme) |
||
26 | |||
27 | /** |
||
28 | * @param $finder |
||
29 | * @return $this |
||
30 | */ |
||
31 | public function setFinder($finder) |
||
37 | |||
38 | /** |
||
39 | * @param $repository |
||
40 | * @return $this |
||
41 | */ |
||
42 | public function setRepository($repository) |
||
48 | |||
49 | /** |
||
50 | * Publish the assets |
||
51 | */ |
||
52 | public function publish() |
||
65 | |||
66 | /** |
||
67 | * Get the original source path |
||
68 | * @return string |
||
69 | */ |
||
70 | public function getSourcePath() |
||
74 | |||
75 | /** |
||
76 | * Get the destination path |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getDestinationPath() |
||
83 | } |
||
84 |