Permalink
Browse files

Remove useless fallback as the container is always injected into Cont…

…ainerAwareInterface instances
  • Loading branch information...
1 parent b008f49 commit 3696d040ae74056563bad9a627d8aea882da53ec @GromNaN committed Dec 30, 2013
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/Symfony/Bundle/TwigBundle/Command/LintCommand.php
@@ -35,10 +35,6 @@ public function setContainer(ContainerInterface $container = null)
*/
public function getTwigEnvironment()
{
- if (null === $this->container) {
- $this->container = $this->getApplication()->getKernel()->getContainer();
- }
-
return $this->container->get('twig');
}
}

0 comments on commit 3696d04

Please sign in to comment.