PHP Class WellCommerce\Bundle\CoreBundle\Helper\Security\SecurityHelper

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\CoreBundle\Helper\Security\SecurityHelperInterface
显示文件 Open project: wellcommerce/wellcommerce

Public Methods

Method Description
__construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface $requestHelper, array $firewallMap = [] ) SecurityHelper constructor.
generateRandomPassword ( integer $length = 8 ) : string
getAuthenticatedAdmin ( ) : WellCommerce\Bundle\AdminBundle\Entity\UserInterface
getAuthenticatedClient ( ) : WellCommerce\Bundle\ClientBundle\Entity\ClientInterface
getCurrentAdmin ( )
getCurrentClient ( )
getCurrentUser ( )
getFirewallNameForRequest ( Request $request )
isActiveAdminFirewall ( ) : boolean
isActiveFirewall ( string $name ) : boolean

Method Details

__construct() public method

SecurityHelper constructor.
public __construct ( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface $requestHelper, array $firewallMap = [] )
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$requestHelper WellCommerce\Bundle\CoreBundle\Helper\Request\RequestHelperInterface
$firewallMap array

generateRandomPassword() public method

public generateRandomPassword ( integer $length = 8 ) : string
$length integer
return string

getAuthenticatedAdmin() public method

public getAuthenticatedAdmin ( ) : WellCommerce\Bundle\AdminBundle\Entity\UserInterface
return WellCommerce\Bundle\AdminBundle\Entity\UserInterface

getAuthenticatedClient() public method

public getAuthenticatedClient ( ) : WellCommerce\Bundle\ClientBundle\Entity\ClientInterface
return WellCommerce\Bundle\ClientBundle\Entity\ClientInterface

getCurrentAdmin() public method

public getCurrentAdmin ( )

getCurrentClient() public method

public getCurrentClient ( )

getCurrentUser() public method

public getCurrentUser ( )

getFirewallNameForRequest() public method

public getFirewallNameForRequest ( Request $request )
$request Symfony\Component\HttpFoundation\Request

isActiveAdminFirewall() public method

public isActiveAdminFirewall ( ) : boolean
return boolean

isActiveFirewall() public method

public isActiveFirewall ( string $name ) : boolean
$name string
return boolean