PHP 클래스 WellCommerce\Bundle\CoreBundle\Helper\Security\SecurityHelper

저자: Adam Piotrowski ([email protected])
상속: implements WellCommerce\Bundle\CoreBundle\Helper\Security\SecurityHelperInterface
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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 generateRandomPassword ( integer $length = 8 ) : string
$length integer
리턴 string

getAuthenticatedAdmin() 공개 메소드

public getAuthenticatedAdmin ( ) : WellCommerce\Bundle\AdminBundle\Entity\UserInterface
리턴 WellCommerce\Bundle\AdminBundle\Entity\UserInterface

getAuthenticatedClient() 공개 메소드

public getAuthenticatedClient ( ) : WellCommerce\Bundle\ClientBundle\Entity\ClientInterface
리턴 WellCommerce\Bundle\ClientBundle\Entity\ClientInterface

getCurrentAdmin() 공개 메소드

public getCurrentAdmin ( )

getCurrentClient() 공개 메소드

public getCurrentClient ( )

getCurrentUser() 공개 메소드

public getCurrentUser ( )

getFirewallNameForRequest() 공개 메소드

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

isActiveAdminFirewall() 공개 메소드

public isActiveAdminFirewall ( ) : boolean
리턴 boolean

isActiveFirewall() 공개 메소드

public isActiveFirewall ( string $name ) : boolean
$name string
리턴 boolean