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
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
__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