Skip to content

Commit c75b276

Browse files
committed
[FrameworkBundle] Check if templating is enabled.
1 parent f44eef4 commit c75b276

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)