From c690a19bd7079369df1da7090f737ddeb9932863 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Fri, 2 Feb 2024 22:48:03 +0100 Subject: [PATCH] Remove RegisterWallabagGuzzleSubscribersPass --- app/config/services.yml | 1 + .../RegisterWallabagGuzzleSubscribersPass.php | 24 ------------------- .../CoreBundle/WallabagCoreBundle.php | 2 -- 3 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 src/Wallabag/CoreBundle/DependencyInjection/CompilerPass/RegisterWallabagGuzzleSubscribersPass.php diff --git a/app/config/services.yml b/app/config/services.yml index 1e8b57dd8..6f5a94533 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -205,6 +205,7 @@ services: Wallabag\CoreBundle\Helper\HttpClientFactory: calls: - ['addSubscriber', ['@Wallabag\CoreBundle\Guzzle\AuthenticatorSubscriber']] + - ['addSubscriber', ['@Wallabag\CoreBundle\Guzzle\FixupMondeDiplomatiqueUriSubscriber']] RulerZ\RulerZ: alias: rulerz diff --git a/src/Wallabag/CoreBundle/DependencyInjection/CompilerPass/RegisterWallabagGuzzleSubscribersPass.php b/src/Wallabag/CoreBundle/DependencyInjection/CompilerPass/RegisterWallabagGuzzleSubscribersPass.php deleted file mode 100644 index a9c14c9b4..000000000 --- a/src/Wallabag/CoreBundle/DependencyInjection/CompilerPass/RegisterWallabagGuzzleSubscribersPass.php +++ /dev/null @@ -1,24 +0,0 @@ -getDefinition(HttpClientFactory::class); - - // manually add subscribers for some websites - $definition->addMethodCall( - 'addSubscriber', [ - new Reference(FixupMondeDiplomatiqueUriSubscriber::class), - ] - ); - } -} diff --git a/src/Wallabag/CoreBundle/WallabagCoreBundle.php b/src/Wallabag/CoreBundle/WallabagCoreBundle.php index 5893dd841..e6fae41a1 100644 --- a/src/Wallabag/CoreBundle/WallabagCoreBundle.php +++ b/src/Wallabag/CoreBundle/WallabagCoreBundle.php @@ -4,7 +4,6 @@ namespace Wallabag\CoreBundle; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; -use Wallabag\CoreBundle\DependencyInjection\CompilerPass\RegisterWallabagGuzzleSubscribersPass; use Wallabag\CoreBundle\Import\ImportCompilerPass; class WallabagCoreBundle extends Bundle @@ -14,6 +13,5 @@ class WallabagCoreBundle extends Bundle parent::build($container); $container->addCompilerPass(new ImportCompilerPass()); - $container->addCompilerPass(new RegisterWallabagGuzzleSubscribersPass()); } }