bug #20816 [FrameworkBundle] Removed kernel.debug from the cache pool namespace seed (Sander Toonen)

This PR was merged into the 3.1 branch.

Discussion
----------

[FrameworkBundle] Removed kernel.debug from the cache pool namespace seed

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/20780
| License       | MIT
| Doc PR        |

Commits
-------

8e1dac5 [FrameworkBundle] Removed the kernel.debug parameter from the cache pool namespace seed
This commit is contained in:
Fabien Potencier 2016-12-08 08:18:02 +01:00
commit 4317a7a256

View File

@ -30,7 +30,7 @@ class CachePoolPass implements CompilerPassInterface
{
$namespaceSuffix = '';
foreach (array('name', 'root_dir', 'environment', 'debug') as $key) {
foreach (array('name', 'root_dir', 'environment') as $key) {
if ($container->hasParameter('kernel.'.$key)) {
$namespaceSuffix .= '.'.$container->getParameter('kernel.'.$key);
}