src/Provider/AbstractServiceProvider.php
protected function addFirewall(Application $app, $pattern, $authType)
    {
        $firewalls = $app['security.firewalls'];
        $key = is_object($pattern) ? spl_object_hash($pattern) : $pattern;
        $firewalls[$key] =  [
            'pattern' => $pattern,
            $authType => true,
        ];

        $app['security.firewalls'] = $firewalls;
    }
protected function addFirewall(Application $app, $pattern, $authType)
    {
        $firewalls = $app['security.firewalls'];
        $key = is_object($pattern) ? spl_object_hash($pattern) : $pattern;
        $firewalls[$key] =  [
            'pattern' => $pattern,
            $authType => true,
        ];

        $app['security.firewalls'] = $firewalls;
    }
protected function addFirewall ( Application $ app , $ pattern , $ authType ) { $ firewalls = $ app [ 'security.firewalls' ] ; $ key = is_object ( $ pattern ) ? spl_object_hash ( $ pattern ) : $ pattern ; $ firewalls [ $ key ] = [ 'pattern' => $ pattern , $ authType => true , ] ; $ app [ 'security.firewalls' ] = $ firewalls ; }
Add a firewall record
@param Application $app
@param string|RequestMatcher $pattern
@param string $authType (oauth, anonymous, oauth-optional, etc)
Add a firewall record