PHP Class Sylius\Bundle\CoreBundle\OAuth\UserProvider

Author: Fabian Kiss ([email protected])
Author: Joseph Bielawski ([email protected])
Author: Łukasz Chruściel ([email protected])
Inheritance: extends Sylius\Bundle\UserBundle\Provider\UsernameOrEmailProvider, implements HWI\Bundle\OAuthBundle\Connect\AccountConnectorInterface, implements HWI\Bundle\OAuthBundle\Security\Core\User\OAuthAwareUserProviderInterface
Datei anzeigen Open project: sylius/sylius

Public Methods

Method Description
__construct ( string $supportedUserClass, Sylius\Component\Resource\Factory\FactoryInterface $customerFactory, Sylius\Component\Resource\Factory\FactoryInterface $userFactory, Sylius\Component\User\Repository\UserRepositoryInterface $userRepository, Sylius\Component\Resource\Factory\FactoryInterface $oauthFactory, Sylius\Component\Resource\Repository\RepositoryInterface $oauthRepository, Doctrine\Common\Persistence\ObjectManager $userManager, Sylius\Component\User\Canonicalizer\CanonicalizerInterface $canonicalizer )
connect ( Symfony\Component\Security\Core\User\UserInterface $user, HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response )
loadUserByOAuthUserResponse ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response )

Private Methods

Method Description
createUserByOAuthUserResponse ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Sylius\Component\Core\Model\ShopUserInterface Ad-hoc creation of user.
updateUserByOAuthUserResponse ( Symfony\Component\Security\Core\User\UserInterface $user, HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface Attach OAuth sign-in provider account to existing user.

Method Details

__construct() public method

public __construct ( string $supportedUserClass, Sylius\Component\Resource\Factory\FactoryInterface $customerFactory, Sylius\Component\Resource\Factory\FactoryInterface $userFactory, Sylius\Component\User\Repository\UserRepositoryInterface $userRepository, Sylius\Component\Resource\Factory\FactoryInterface $oauthFactory, Sylius\Component\Resource\Repository\RepositoryInterface $oauthRepository, Doctrine\Common\Persistence\ObjectManager $userManager, Sylius\Component\User\Canonicalizer\CanonicalizerInterface $canonicalizer )
$supportedUserClass string
$customerFactory Sylius\Component\Resource\Factory\FactoryInterface
$userFactory Sylius\Component\Resource\Factory\FactoryInterface
$userRepository Sylius\Component\User\Repository\UserRepositoryInterface
$oauthFactory Sylius\Component\Resource\Factory\FactoryInterface
$oauthRepository Sylius\Component\Resource\Repository\RepositoryInterface
$userManager Doctrine\Common\Persistence\ObjectManager
$canonicalizer Sylius\Component\User\Canonicalizer\CanonicalizerInterface

connect() public method

public connect ( Symfony\Component\Security\Core\User\UserInterface $user, HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response )
$user Symfony\Component\Security\Core\User\UserInterface
$response HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface

loadUserByOAuthUserResponse() public method

public loadUserByOAuthUserResponse ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response )
$response HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface