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.
This commit is contained in:
Fabien Potencier 2015-02-17 12:55:01 +01:00
commit a630d87d57
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ class Configuration implements ConfigurationInterface
->validate()
->ifTrue(function ($v) { return !isset($v['assets']); })
->then(function ($v) {
if (!$v['templating']['assets_version']
if (!isset($v['templating'])
|| !$v['templating']['assets_version']
&& !count($v['templating']['assets_base_urls']['http'])
&& !count($v['templating']['assets_base_urls']['ssl'])
&& !count($v['templating']['packages'])