PHP Class Sylius\Bundle\AdminBundle\Controller\ImpersonateUserController

Author: Jan Góralski ([email protected])
Exibir arquivo Open project: sylius/sylius

Protected Properties

Property Type Description
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$authorizationRole string
$impersonator Sylius\Bundle\CoreBundle\Security\UserImpersonatorInterface
$router Symfony\Component\Routing\RouterInterface
$userProvider Sylius\Bundle\UserBundle\Provider\UserProviderInterface

Public Methods

Method Description
__construct ( Sylius\Bundle\CoreBundle\Security\UserImpersonatorInterface $impersonator, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\UserBundle\Provider\UserProviderInterface $userProvider, Symfony\Component\Routing\RouterInterface $router, string $authorizationRole )
impersonateAction ( Request $request, string $username ) : Response

Private Methods

Method Description
addFlash ( Request $request, string $username )

Method Details

__construct() public method

public __construct ( Sylius\Bundle\CoreBundle\Security\UserImpersonatorInterface $impersonator, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, Sylius\Bundle\UserBundle\Provider\UserProviderInterface $userProvider, Symfony\Component\Routing\RouterInterface $router, string $authorizationRole )
$impersonator Sylius\Bundle\CoreBundle\Security\UserImpersonatorInterface
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$userProvider Sylius\Bundle\UserBundle\Provider\UserProviderInterface
$router Symfony\Component\Routing\RouterInterface
$authorizationRole string

impersonateAction() public method

public impersonateAction ( Request $request, string $username ) : Response
$request Symfony\Component\HttpFoundation\Request
$username string
return Symfony\Component\HttpFoundation\Response

Property Details

$authorizationChecker protected_oe property

protected AuthorizationCheckerInterface,Symfony\Component\Security\Core\Authorization $authorizationChecker
return Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface

$authorizationRole protected_oe property

protected string $authorizationRole
return string

$impersonator protected_oe property

protected UserImpersonatorInterface,Sylius\Bundle\CoreBundle\Security $impersonator
return Sylius\Bundle\CoreBundle\Security\UserImpersonatorInterface

$router protected_oe property

protected RouterInterface,Symfony\Component\Routing $router
return Symfony\Component\Routing\RouterInterface

$userProvider protected_oe property

protected UserProviderInterface,Sylius\Bundle\UserBundle\Provider $userProvider
return Sylius\Bundle\UserBundle\Provider\UserProviderInterface