Метод | Описание | |
---|---|---|
__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. |
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 |
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 |
public loadUserByOAuthUserResponse ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) | ||
$response | HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface |