diff --git a/app/AppKernel.php b/app/AppKernel.php index d161a9b9f..286cfb699 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -3,6 +3,7 @@ use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Kernel; +use Wallabag\CoreBundle\Import\ImportCompilerPass; class AppKernel extends Kernel { @@ -98,6 +99,11 @@ class AppKernel extends Kernel }); } + protected function build(ContainerBuilder $container) + { + $container->addCompilerPass(new ImportCompilerPass()); + } + private function processDatabaseParameters(ContainerBuilder $container) { switch ($container->getParameter('database_driver')) { diff --git a/src/WallabagCoreBundle.php b/src/WallabagCoreBundle.php index e6fae41a1..f5899e39c 100644 --- a/src/WallabagCoreBundle.php +++ b/src/WallabagCoreBundle.php @@ -2,16 +2,8 @@ namespace Wallabag\CoreBundle; -use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; -use Wallabag\CoreBundle\Import\ImportCompilerPass; class WallabagCoreBundle extends Bundle { - public function build(ContainerBuilder $container) - { - parent::build($container); - - $container->addCompilerPass(new ImportCompilerPass()); - } }