Skip to content

Commit a630d87

Browse files
committed
bug #13711 [FrameworkBundle] Check if templating is enabled. (jakzal)
This PR was merged into the 2.7 branch. Discussion ---------- [FrameworkBundle] Check if templating is enabled. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #13710 | License | MIT | Doc PR | - templating can be disabled. Commits ------- c75b276 [FrameworkBundle] Check if templating is enabled.
2 parents f44eef4 + c75b276 commit a630d87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public function getConfigTreeBuilder()
5656
->validate()
5757
->ifTrue(function ($v) { return !isset($v['assets']); })
5858
->then(function ($v) {
59-
if (!$v['templating']['assets_version']
59+
if (!isset($v['templating'])
60+
|| !$v['templating']['assets_version']
6061
&& !count($v['templating']['assets_base_urls']['http'])
6162
&& !count($v['templating']['assets_base_urls']['ssl'])
6263
&& !count($v['templating']['packages'])

0 commit comments

Comments
 (0)