[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:
parent
6731065626
commit
d4e47a305b
@ -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) {
|
||||
|
Reference in New Issue
Block a user