8000 minor #24172 [FrameworkBundle] Enable assets with templates only if t… · symfony/symfony@3c262ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c262ba

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 ------- 5bc0b05 [FrameworkBundle] Enable assets with templates only if the Asset component is installed
2 parents eb11831 + 5bc0b05 commit 3c262ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/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)
0