From fe039247b505dd1e6e4d98697ac5cd15947ef989 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Mon, 19 Feb 2024 01:03:08 +0100 Subject: [PATCH] Move to bundle-less --- app/AppKernel.php | 3 --- app/config/config.yml | 7 +++++++ app/config/routing.yml | 2 +- src/DependencyInjection/Configuration.php | 14 -------------- .../WallabagCoreExtension.php | 18 ------------------ src/WallabagCoreBundle.php | 9 --------- 6 files changed, 8 insertions(+), 45 deletions(-) delete mode 100644 src/DependencyInjection/Configuration.php delete mode 100644 src/DependencyInjection/WallabagCoreExtension.php delete mode 100644 src/WallabagCoreBundle.php diff --git a/app/AppKernel.php b/app/AppKernel.php index 286cfb699..ede8fec03 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -35,9 +35,6 @@ class AppKernel extends Kernel new Http\HttplugBundle\HttplugBundle(), new Sentry\SentryBundle\SentryBundle(), new Twig\Extra\TwigExtraBundle\TwigExtraBundle(), - - // wallabag bundles - new Wallabag\CoreBundle\WallabagCoreBundle(), ]; if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { diff --git a/app/config/config.yml b/app/config/config.yml index 2a2869c3a..3db473e98 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -68,6 +68,13 @@ doctrine: entity_managers: default: auto_mapping: true + mappings: + Wallabag: + type: annotation + is_bundle: false + dir: '%kernel.project_dir%/src/Entity' + prefix: 'Wallabag\CoreBundle\Entity' + alias: Wallabag stof_doctrine_extensions: default_locale: "%locale%" diff --git a/app/config/routing.yml b/app/config/routing.yml index 3cfaef516..fc5a501b1 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -1,5 +1,5 @@ app: - resource: "@WallabagCoreBundle/Controller/" + resource: ../../src/Controller/ type: annotation doc-api: diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php deleted file mode 100644 index 939e9459c..000000000 --- a/src/DependencyInjection/Configuration.php +++ /dev/null @@ -1,14 +0,0 @@ -