Skip to content

Commit 75b2219

Browse files
committed
minor #24172 [FrameworkBundle] Enable assets with templates only if the Asset component is installed (hason)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Enable assets with templates only if the Asset component is installed | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | - Commits ------- 5bc0b0527e [FrameworkBundle] Enable assets with templates only if the Asset component is installed
2 parents e219cd0 + fd14e00 commit 75b2219

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)