Skip to content

Commit fd14e00

Browse files
committed
[FrameworkBundle] Enable assets with templates only if the Asset component is installed
1 parent 986513d commit fd14e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function getConfigTreeBuilder()
5252

5353
$rootNode
5454
->beforeNormalization()
55-
->ifTrue(function ($v) { return !isset($v['assets']) && isset($v['templating']); })
55+
->ifTrue(function ($v) { return !isset($v['assets']) && isset($v['templating']) && class_exists(Package::class); })
5656
->then(function ($v) {
5757
$v['assets'] = array();
5858

0 commit comments

Comments
 (0)