diff --git a/app/config/services.yml b/app/config/services.yml index 572b8fd59..799a8cfde 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 94% rename from src/Guzzle/AuthenticatorSubscriber.php rename to src/HttpClient/Authenticator.php index dd11f6d30..47a7a17aa 100644 --- a/src/Guzzle/AuthenticatorSubscriber.php +++ b/src/HttpClient/Authenticator.php @@ -1,6 +1,6 @@ configBuilder = $configBuilder; diff --git a/tests/Guzzle/AuthenticatorSubscriberTest.php b/tests/Tests/Wallabag/HttpClient/AuthenticatorTest.php similarity index 92% rename from tests/Guzzle/AuthenticatorSubscriberTest.php rename to tests/Tests/Wallabag/HttpClient/AuthenticatorTest.php index dc45bb19e..d58ae6591 100644 --- a/tests/Guzzle/AuthenticatorSubscriberTest.php +++ b/tests/Tests/Wallabag/HttpClient/AuthenticatorTest.php @@ -1,16 +1,16 @@ getMock(); $builder = new ArraySiteConfigBuilder(['example.com' => []]); - $subscriber = new AuthenticatorSubscriber($builder, $authenticator); + $subscriber = new \Wallabag\HttpClient\Authenticator($builder, $authenticator); $logger = new Logger('foo'); $handler = new TestHandler(); @@ -51,7 +51,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(); @@ -76,7 +76,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(); @@ -117,7 +117,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(); @@ -165,7 +165,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(); @@ -206,7 +206,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();