Webiny\Component\Security\Authentication\Firewall::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $firewallKey, ConfigObject $firewallConfig, array $userProviders, Encoder $encoder )
$firewallKey string Name of the current firewall.
$firewallConfig Webiny\Component\Config\ConfigObject Firewall config.
$userProviders array Array of user providers for this firewall.
$encoder Webiny\Component\Security\Encoder\Encoder Instance of encoder for this firewall.
    public function __construct($firewallKey, ConfigObject $firewallConfig, array $userProviders, Encoder $encoder)
    {
        $this->firewallKey = $firewallKey;
        $this->config = $firewallConfig;
        $this->userProviders = $userProviders;
        $this->encoder = $encoder;
        $this->initToken();
    }