diff --git a/src/Kernel.php b/src/Kernel.php
index <HASH>..<HASH> 100644
--- a/src/Kernel.php
+++ b/src/Kernel.php
@@ -453,7 +453,7 @@ class Kernel
         if ($this->debug) {
             $this->setContainer(new ContainerBuilder(new EnvPlaceholderParameterBag($this->getContainerParameters())));
             $this->loadContainerConfiguration();
-            $this->container->compile();
+            $this->container->compile(true);
         } else {
             $filename = $this->getContainerCacheFilename();
 
@@ -463,7 +463,7 @@ class Kernel
             } else {
                 $this->setContainer(new ContainerBuilder(new EnvPlaceholderParameterBag($this->getContainerParameters())));
                 $this->loadContainerConfiguration();
-                $this->container->compile();
+                $this->container->compile(true);
 
                 if ($this->containerIsCacheable()) {
                     $dumper = new PhpDumper($this->container);
@@ -529,4 +529,4 @@ class Kernel
     {
         // Optional
     }
-}
\ No newline at end of file
+}
resolve env placeholder parameter

- env vars where not replaced when container has been compiled in debug mode
- env vars where not replaced when compiling a container in non-debug mode but when loading the cached version on a second call