From 2c651691278396dd38e424846bc04a971891b95e Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Mon, 1 Jan 2024 17:05:20 +0100 Subject: [PATCH] Remove ImportBundle --- app/AppKernel.php | 1 - src/Wallabag/CoreBundle/WallabagCoreBundle.php | 8 ++++++++ .../DependencyInjection/Configuration.php | 16 ---------------- .../WallabagImportExtension.php | 18 ------------------ .../ImportBundle/WallabagImportBundle.php | 17 ----------------- 5 files changed, 8 insertions(+), 52 deletions(-) delete mode 100644 src/Wallabag/ImportBundle/DependencyInjection/Configuration.php delete mode 100644 src/Wallabag/ImportBundle/DependencyInjection/WallabagImportExtension.php delete mode 100644 src/Wallabag/ImportBundle/WallabagImportBundle.php 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()); - } -}