@@ 143-157 (lines=15) @@ | ||
140 | * @throws InvalidEntityException |
|
141 | * @throws DomainException |
|
142 | */ |
|
143 | public function addJs($handle, $extra_dependencies = []) |
|
144 | { |
|
145 | $details = $this->getAssetDetails( |
|
146 | Asset::TYPE_JS, |
|
147 | $handle, |
|
148 | $extra_dependencies |
|
149 | ); |
|
150 | return $this->addJavascript( |
|
151 | $handle, |
|
152 | $this->registry->getJsUrl($this->domain->assetNamespace(), $handle), |
|
153 | $details['dependencies'], |
|
154 | true, |
|
155 | $details['version'] |
|
156 | ); |
|
157 | } |
|
158 | ||
159 | ||
160 | /** |
|
@@ 234-248 (lines=15) @@ | ||
231 | * @throws InvalidEntityException |
|
232 | * @throws DomainException |
|
233 | */ |
|
234 | public function addCss($handle, $extra_dependencies = []) |
|
235 | { |
|
236 | $details = $this->getAssetDetails( |
|
237 | Asset::TYPE_CSS, |
|
238 | $handle, |
|
239 | $extra_dependencies |
|
240 | ); |
|
241 | return $this->addStylesheet( |
|
242 | $handle, |
|
243 | $this->registry->getCssUrl($this->domain->assetNamespace(), $handle), |
|
244 | $details['dependencies'], |
|
245 | 'all', |
|
246 | $details['version'] |
|
247 | ); |
|
248 | } |
|
249 | ||
250 | ||
251 | /** |