8000 [Assetic] Make AsseticExtension::createDirectoryResourceDefinition pu… · renegare/symfony@d4e47a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit d4e47a3

Browse files
committed
[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.
1 parent 6731065 commit d4e47a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/AsseticBundle/DependencyInjection/AsseticExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static protected function registerFormulaResources(ContainerBuilder $container,
186186
*
187187
* @return Definition A resource definition
188188
*/
189-
static protected function createDirectoryResourceDefinition($bundle, $engine, array $dirs)
189+
static public function createDirectoryResourceDefinition($bundle, $engine, array $dirs)
190190
{
191191
$dirResources = array();
192192
foreach ($dirs as $dir) {

0 commit comments

Comments
 (0)
0