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()); } }