[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:
Benjamin Eberlei 2011-06-07 22:38:09 +02:00
parent 6731065626
commit d4e47a305b

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