1 | <?php |
||
21 | abstract class AssetManager implements AssetManagerInterface |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var AssetCollection $assets |
||
26 | */ |
||
27 | protected $assets; |
||
28 | |||
29 | /** |
||
30 | * @var DomainInterface |
||
31 | */ |
||
32 | protected $domain; |
||
33 | |||
34 | /** |
||
35 | * @var Registry $registry |
||
36 | */ |
||
37 | protected $registry; |
||
38 | |||
39 | |||
40 | /** |
||
41 | * AssetRegister constructor. |
||
42 | * |
||
43 | * @param DomainInterface $domain |
||
44 | * @param AssetCollection $assets |
||
45 | * @param Registry $registry |
||
46 | */ |
||
47 | public function __construct(DomainInterface $domain, AssetCollection $assets, Registry $registry) |
||
57 | |||
58 | |||
59 | /** |
||
60 | * @return void |
||
61 | * @throws DuplicateCollectionIdentifierException |
||
62 | * @throws InvalidDataTypeException |
||
63 | * @throws InvalidEntityException |
||
64 | * @since $VID:$ |
||
65 | */ |
||
66 | public function addManifestFile() |
||
75 | |||
76 | |||
77 | /** |
||
78 | * @return ManifestFile[] |
||
79 | * @since $VID:$ |
||
80 | */ |
||
81 | public function getManifestFile() |
||
85 | |||
86 | |||
87 | /** |
||
88 | * @param string $handle |
||
89 | * @param string $source |
||
90 | * @param array $dependencies |
||
91 | * @param bool $load_in_footer |
||
92 | * @return JavascriptAsset |
||
93 | * @throws DuplicateCollectionIdentifierException |
||
94 | * @throws InvalidDataTypeException |
||
95 | * @throws InvalidEntityException |
||
96 | * @since $VID:$ |
||
97 | */ |
||
98 | public function addJavascript( |
||
114 | |||
115 | |||
116 | /** |
||
117 | * @return JavascriptAsset[] |
||
118 | * @since $VID:$ |
||
119 | */ |
||
120 | public function getJavascriptAssets() |
||
124 | |||
125 | |||
126 | /** |
||
127 | * @param string $handle |
||
128 | * @param string $source |
||
129 | * @param array $dependencies |
||
130 | * @param string $media |
||
131 | * @return StylesheetAsset |
||
132 | * @throws DuplicateCollectionIdentifierException |
||
133 | * @throws InvalidDataTypeException |
||
134 | * @throws InvalidEntityException |
||
135 | * @since $VID:$ |
||
136 | */ |
||
137 | public function addStylesheet( |
||
153 | |||
154 | |||
155 | /** |
||
156 | * @return StylesheetAsset[] |
||
157 | * @since $VID:$ |
||
158 | */ |
||
159 | public function getStylesheetAssets() |
||
163 | |||
164 | |||
165 | /** |
||
166 | * @param string $handle |
||
167 | * @return bool |
||
168 | * @since $VID:$ |
||
169 | */ |
||
170 | public function enqueueAsset($handle) |
||
181 | } |
||
182 |