diff --git a/app/config/services.yml b/app/config/services.yml index 662a858ef..61e628225 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -220,7 +220,7 @@ services: Wallabag\Helper\HttpClientFactory: calls: - - ['addSubscriber', ['@Wallabag\Guzzle\AuthenticatorSubscriber']] + - ['addSubscriber', ['@Wallabag\HttpClient\Authenticator']] RulerZ\RulerZ: alias: rulerz diff --git a/src/Guzzle/AuthenticatorSubscriber.php b/src/HttpClient/Authenticator.php similarity index 96% rename from src/Guzzle/AuthenticatorSubscriber.php rename to src/HttpClient/Authenticator.php index 4b565076e..4b649af79 100644 --- a/src/Guzzle/AuthenticatorSubscriber.php +++ b/src/HttpClient/Authenticator.php @@ -1,6 +1,6 @@ disableOriginalConstructor() ->getMock(); - $subscriber = new AuthenticatorSubscriber( + $subscriber = new Authenticator( new ArraySiteConfigBuilder(), $authenticator ); @@ -43,7 +43,7 @@ class AuthenticatorSubscriberTest extends TestCase ->getMock(); $builder = new ArraySiteConfigBuilder(['example.com' => []]); - $subscriber = new AuthenticatorSubscriber($builder, $authenticator); + $subscriber = new Authenticator($builder, $authenticator); $logger = new Logger('foo'); $handler = new TestHandler(); @@ -83,7 +83,7 @@ class AuthenticatorSubscriberTest extends TestCase ->method('login'); $builder = new ArraySiteConfigBuilder(['example.com' => ['requiresLogin' => true]]); - $subscriber = new AuthenticatorSubscriber($builder, $authenticator); + $subscriber = new Authenticator($builder, $authenticator); $logger = new Logger('foo'); $handler = new TestHandler(); @@ -128,7 +128,7 @@ class AuthenticatorSubscriberTest extends TestCase ->getMock(); $builder = new ArraySiteConfigBuilder(['example.com' => []]); - $subscriber = new AuthenticatorSubscriber($builder, $authenticator); + $subscriber = new Authenticator($builder, $authenticator); $logger = new Logger('foo'); $handler = new TestHandler(); @@ -168,7 +168,7 @@ class AuthenticatorSubscriberTest extends TestCase 'requiresLogin' => true, 'notLoggedInXpath' => '//html', ]]); - $subscriber = new AuthenticatorSubscriber($builder, $authenticator); + $subscriber = new Authenticator($builder, $authenticator); $logger = new Logger('foo'); $handler = new TestHandler(); @@ -220,7 +220,7 @@ class AuthenticatorSubscriberTest extends TestCase 'requiresLogin' => true, 'notLoggedInXpath' => '//html', ]]); - $subscriber = new AuthenticatorSubscriber($builder, $authenticator); + $subscriber = new Authenticator($builder, $authenticator); $logger = new Logger('foo'); $handler = new TestHandler(); @@ -271,7 +271,7 @@ class AuthenticatorSubscriberTest extends TestCase 'requiresLogin' => true, 'notLoggedInXpath' => '//html', ]]); - $subscriber = new AuthenticatorSubscriber($builder, $authenticator); + $subscriber = new Authenticator($builder, $authenticator); $logger = new Logger('foo'); $handler = new TestHandler();