[FrameworkBundle] removed hardcoded AppKernel class name
This commit is contained in:
parent
b00a903858
commit
00d47889a2
@ -67,7 +67,8 @@ EOF
|
||||
if (!$this->cacheDir) {
|
||||
$this->warmUp($this->container);
|
||||
} else {
|
||||
$this->kernelTmp = new \AppKernel(
|
||||
$class = get_class($this->container->get('kernel'));
|
||||
$this->kernelTmp = new $class(
|
||||
$this->container->getParameter('kernel.environment'),
|
||||
$this->container->getParameter('kernel.debug'),
|
||||
$this->cacheDir
|
||||
|
Reference in New Issue
Block a user