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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy