PHP 클래스 Webiny\Component\Security\Security

The class checks if we are inside the firewall, and what is the state of the current user, is he authenticated or not. Once we have the user, the security class check with the authorization layer (UAC) what roles are required to access the current part of the site, and check is current user has the necessary role to enter this area.
상속: use trait Webiny\Component\StdLib\SingletonTrait, use trait Webiny\Component\StdLib\StdLibTrait, use trait Webiny\Component\StdLib\FactoryLoaderTrait, use trait Webiny\Component\EventManager\EventManagerTrait, use trait Webiny\Component\StdLib\ComponentTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
firewall ( string $firewallKey = '' ) : Firewall Initializes the security layer for a specific firewall.

비공개 메소드들

메소드 설명
getFirewallConfig ( $firewallKey ) : ConfigObject
getFirewallEncoder ( string $firewallKey ) : Encoder Returns the encoder instance for the given firewall.
getFirewallUserProviders ( string $firewallKey ) : array Returns an array of instances of user providers for the given firewall.

메소드 상세

firewall() 공개 메소드

Initializes the security layer for a specific firewall.
public firewall ( string $firewallKey = '' ) : Firewall
$firewallKey string Name of the firewall you wish to return. If you don't pass the name param, the first firewall from your configuration will be used.
리턴 Webiny\Component\Security\Authentication\Firewall