diff --git a/app/AppKernel.php b/app/AppKernel.php index 98a17e095..216cacf29 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -38,7 +38,6 @@ class AppKernel extends Kernel // wallabag bundles new Wallabag\CoreBundle\WallabagCoreBundle(), - new Wallabag\ImportBundle\WallabagImportBundle(), ]; if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { diff --git a/src/Wallabag/CoreBundle/WallabagCoreBundle.php b/src/Wallabag/CoreBundle/WallabagCoreBundle.php index f5899e39c..e6fae41a1 100644 --- a/src/Wallabag/CoreBundle/WallabagCoreBundle.php +++ b/src/Wallabag/CoreBundle/WallabagCoreBundle.php @@ -2,8 +2,16 @@ 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()); + } } diff --git a/src/Wallabag/ImportBundle/DependencyInjection/Configuration.php b/src/Wallabag/ImportBundle/DependencyInjection/Configuration.php deleted file mode 100644 index e9e893e1a..000000000 --- a/src/Wallabag/ImportBundle/DependencyInjection/Configuration.php +++ /dev/null @@ -1,16 +0,0 @@ -addCompilerPass(new ImportCompilerPass()); - } -}