From 4b37b0c17c4a6c6fdcdde73cd5ff072b5af5a8b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D1=80=D0=B8=D0=B2=D0=B8=D1=87=20=D0=A1=D0=B5=D1=80?= =?UTF-8?q?=D0=B3=D0=B5=D0=B9?= Date: Thu, 21 Jul 2022 17:44:16 +0300 Subject: [PATCH] Update dependency injection --- DependencyInjection/RetailCrmServiceExtension.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/DependencyInjection/RetailCrmServiceExtension.php b/DependencyInjection/RetailCrmServiceExtension.php index cb0c29f..e5776d4 100644 --- a/DependencyInjection/RetailCrmServiceExtension.php +++ b/DependencyInjection/RetailCrmServiceExtension.php @@ -6,8 +6,7 @@ use RetailCrm\ServiceBundle\ArgumentResolver\CallbackValueResolver; use RetailCrm\ServiceBundle\ArgumentResolver\ClientValueResolver; use RetailCrm\ServiceBundle\Messenger\MessageHandler; use RetailCrm\ServiceBundle\Response\ErrorJsonResponseFactory; -use RetailCrm\ServiceBundle\Security\CallbackClientAuthenticator; -use RetailCrm\ServiceBundle\Security\FrontApiClientAuthenticator; +use RetailCrm\ServiceBundle\Security\ApiClientAuthenticator; use RetailCrm\ServiceBundle\Serializer\JMSSerializerAdapter; use RetailCrm\ServiceBundle\Serializer\SymfonySerializerAdapter; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -88,11 +87,7 @@ class RetailCrmServiceExtension extends Extension ->setAutowired(true); $container - ->register(CallbackClientAuthenticator::class) - ->setAutowired(true); - - $container - ->register(FrontApiClientAuthenticator::class) + ->register(ApiClientAuthenticator::class) ->setAutowired(true); $container