瀏覽代碼

[Assetic] Make AsseticExtension::createDirectoryResourceDefinition public, so that third party bundels can easilycreate definitions to search for assetic formulae in additional directories. LiipThemeBundle needs this to make the app/Resources/themes and Bundle/Resources/themes folder searchable. Without this change the whole method would need to be copy pasted. Since the method has no side-effects at all (only factory, not pushing into the container) this change is justifyable imho.

Benjamin Eberlei 14 年之前
父節點
當前提交
d4e47a305b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/AsseticBundle/DependencyInjection/AsseticExtension.php

+ 1 - 1
src/Symfony/Bundle/AsseticBundle/DependencyInjection/AsseticExtension.php

@@ -186,7 +186,7 @@ class AsseticExtension extends Extension
      *
      * @return Definition A resource definition
      */
-    static protected function createDirectoryResourceDefinition($bundle, $engine, array $dirs)
+    static public function createDirectoryResourceDefinition($bundle, $engine, array $dirs)
     {
         $dirResources = array();
         foreach ($dirs as $dir) {