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.
This commit is contained in:
Fabien Potencier 2011-06-07 23:04:57 +02:00
commit 84b25b1626

View File

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