@@ 180-193 (lines=14) @@ | ||
177 | * @throws InvalidEntityException |
|
178 | * @throws DuplicateCollectionIdentifierException |
|
179 | */ |
|
180 | public function addEditorStyle($handle, array $dependencies = array()) |
|
181 | { |
|
182 | if ($this->assets->hasStylesheetAsset($handle)) { |
|
183 | return $this->assets->getStylesheetAsset($handle); |
|
184 | } |
|
185 | return parent::addStylesheet( |
|
186 | $handle, |
|
187 | $this->registry->getCssUrl( |
|
188 | $this->domain->assetNamespace(), |
|
189 | $handle |
|
190 | ), |
|
191 | $dependencies |
|
192 | ); |
|
193 | } |
|
194 | ||
195 | ||
196 | /** |
|
@@ 231-244 (lines=14) @@ | ||
228 | * @throws InvalidEntityException |
|
229 | * @throws DuplicateCollectionIdentifierException |
|
230 | */ |
|
231 | public function addStyle($handle, array $dependencies = array()) |
|
232 | { |
|
233 | if ($this->assets->hasStylesheetAsset($handle)) { |
|
234 | return $this->assets->getStylesheetAsset($handle); |
|
235 | } |
|
236 | return parent::addStylesheet( |
|
237 | $handle, |
|
238 | $this->registry->getCssUrl( |
|
239 | $this->domain->assetNamespace(), |
|
240 | $handle |
|
241 | ), |
|
242 | $dependencies |
|
243 | ); |
|
244 | } |
|
245 | ||
246 | ||
247 | /** |