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

getFirewallKey() public method

Returns the name of the current firewall. Don't mistake it for realm name.
public getFirewallKey ( ) : string
return string
    public function getFirewallKey()
    {
        return $this->firewallKey;
    }

Usage Example

Example #1
0
 /**
  * @param Firewall $firewall
  *
  * @dataProvider firewallProvider
  */
 public function testGetFirewallKey($firewall)
 {
     $this->assertSame('Admin', $firewall->getFirewallKey());
 }