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 | * @since $VID:$ |
||
61 | * @return string |
||
62 | */ |
||
63 | public function assetNamespace() |
||
67 | |||
68 | |||
69 | /** |
||
70 | * @return void |
||
71 | * @throws DuplicateCollectionIdentifierException |
||
72 | * @throws InvalidDataTypeException |
||
73 | * @throws InvalidEntityException |
||
74 | * @since 4.9.62.p |
||
75 | */ |
||
76 | public function addManifestFile() |
||
85 | |||
86 | |||
87 | /** |
||
88 | * @return ManifestFile[] |
||
89 | * @since 4.9.62.p |
||
90 | */ |
||
91 | public function getManifestFile() |
||
95 | |||
96 | |||
97 | /** |
||
98 | * @param string $handle |
||
99 | * @param string $source |
||
100 | * @param array $dependencies |
||
101 | * @param bool $load_in_footer |
||
102 | * @return JavascriptAsset |
||
103 | * @throws DuplicateCollectionIdentifierException |
||
104 | * @throws InvalidDataTypeException |
||
105 | * @throws InvalidEntityException |
||
106 | * @since 4.9.62.p |
||
107 | */ |
||
108 | public function addJavascript( |
||
124 | |||
125 | |||
126 | |||
127 | /** |
||
128 | * @param string $handle |
||
129 | * @param string $source |
||
130 | * @param array $dependencies |
||
131 | * @param string $media |
||
132 | * @return StylesheetAsset |
||
133 | * @throws DuplicateCollectionIdentifierException |
||
134 | * @throws InvalidDataTypeException |
||
135 | * @throws InvalidEntityException |
||
136 | * @since 4.9.62.p |
||
137 | */ |
||
138 | public function addStylesheet( |
||
154 | |||
155 | |||
156 | /** |
||
157 | * @param string $handle |
||
158 | * @return bool |
||
159 | * @since 4.9.62.p |
||
160 | */ |
||
161 | public function enqueueAsset($handle) |
||
172 | } |
||
173 |