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.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Метод |
Описание |
|
firewall ( string $firewallKey = '' ) : Firewall |
Initializes the security layer for a specific 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 |
|