Kaynağa Gözat

Merge remote branch 'beberlei/AsseticDirectoryResource'

* beberlei/AsseticDirectoryResource:
  [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.
Fabien Potencier 14 yıl önce
ebeveyn
işleme
84b25b1626

+ 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) {