PHP Класс Sylius\Bundle\CoreBundle\OAuth\UserProvider

Автор: Fabian Kiss ([email protected])
Автор: Joseph Bielawski ([email protected])
Автор: Łukasz Chruściel ([email protected])
Наследование: extends Sylius\Bundle\UserBundle\Provider\UsernameOrEmailProvider, implements HWI\Bundle\OAuthBundle\Connect\AccountConnectorInterface, implements HWI\Bundle\OAuthBundle\Security\Core\User\OAuthAwareUserProviderInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__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 )

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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 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 loadUserByOAuthUserResponse ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response )
$response HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface