Skip to content

Commit

Permalink
[shopsys] improved administration authentication code (#3683)
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmannmartin authored Jan 6, 2025
2 parents c0109da + d3dc51a commit 0d04a6e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Controller/SocialNetworkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Shopsys\FrameworkBundle\Component\Domain\Domain;
use Shopsys\FrameworkBundle\Model\Cart\CartFacade;
use Shopsys\FrameworkBundle\Model\Security\Authenticator;
use Shopsys\FrontendApiBundle\Model\Customer\User\RegistrationDataFactory;
use Shopsys\FrontendApiBundle\Model\Customer\User\RegistrationFacade;
use Shopsys\FrontendApiBundle\Model\SocialNetwork\Exception\SocialNetworkLoginException;
Expand All @@ -30,7 +29,6 @@ class SocialNetworkController extends AbstractController
protected const string PARAMETER_SHOULD_OVERWRITE_CUSTOMER_USER_CART = 'shouldOverwriteCustomerUserCart';

/**
* @param \Shopsys\FrameworkBundle\Model\Security\Authenticator $authenticator
* @param \Shopsys\FrontendApiBundle\Model\SocialNetwork\SocialNetworkConfigFactory $socialNetworkConfigFactory
* @param \Shopsys\FrontendApiBundle\Model\Customer\User\RegistrationFacade $registrationFacade
* @param \Shopsys\FrontendApiBundle\Model\Customer\User\RegistrationDataFactory $registrationDataFactory
Expand All @@ -39,7 +37,6 @@ class SocialNetworkController extends AbstractController
* @param \Shopsys\FrameworkBundle\Model\Cart\CartFacade $cartFacade
*/
public function __construct(
protected readonly Authenticator $authenticator,
protected readonly SocialNetworkConfigFactory $socialNetworkConfigFactory,
protected readonly RegistrationFacade $registrationFacade,
protected readonly RegistrationDataFactory $registrationDataFactory,
Expand Down Expand Up @@ -78,7 +75,7 @@ public function loginAction(Request $request, string $type): Response
}

/**
* We need to save some data because login to social networks does redirect and after that, we would lose them
* We need to save some data because login to social networks does redirect, and after that, we would lose them
*
* @param \Symfony\Component\HttpFoundation\Request $request
*/
Expand Down

0 comments on commit 0d04a6e

Please sign in to comment.