Skip to content

Commit

Permalink
[FrameworkBundle] removed hardcoded AppKernel class name
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 21, 2011
1 parent b00a903 commit 00d4788
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -67,7 +67,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
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
Expand Down

0 comments on commit 00d4788

Please sign in to comment.