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 4.9.62.p |
||
65 | */ |
||
66 | public function addManifestFile() |
||
75 | |||
76 | |||
77 | /** |
||
78 | * @return ManifestFile[] |
||
79 | * @since 4.9.62.p |
||
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 4.9.62.p |
||
97 | */ |
||
98 | public function addJavascript( |
||
114 | |||
115 | |||
116 | |||
117 | /** |
||
118 | * @param string $handle |
||
119 | * @param string $source |
||
120 | * @param array $dependencies |
||
121 | * @param string $media |
||
122 | * @return StylesheetAsset |
||
123 | * @throws DuplicateCollectionIdentifierException |
||
124 | * @throws InvalidDataTypeException |
||
125 | * @throws InvalidEntityException |
||
126 | * @since 4.9.62.p |
||
127 | */ |
||
128 | public function addStylesheet( |
||
144 | |||
145 | |||
146 | /** |
||
147 | * @param string $handle |
||
148 | * @return bool |
||
149 | * @since 4.9.62.p |
||
150 | */ |
||
151 | public function enqueueAsset($handle) |
||
162 | } |
||
163 |