public function boot(\Silex\Application $app)
    {
        // Register firewalls
        foreach ($this->firewalls as $firewall) {
            $firewall->register($this);
        }

        $i         = 0;
        $firewalls = array();
        foreach ($this->unsecuredPatterns as $pattern => $v) {
            $firewalls['unsecured_'.($i++)] = array('pattern' => $pattern);
        }
        $finalConfig = array_merge($firewalls, $this->firewallConfig);

        $app['security.firewalls'] = $finalConfig;

        parent::boot($app);
    }
public function boot(\Silex\Application $app)
    {
        // Register firewalls
        foreach ($this->firewalls as $firewall) {
            $firewall->register($this);
        }

        $i         = 0;
        $firewalls = array();
        foreach ($this->unsecuredPatterns as $pattern => $v) {
            $firewalls['unsecured_'.($i++)] = array('pattern' => $pattern);
        }
        $finalConfig = array_merge($firewalls, $this->firewallConfig);

        $app['security.firewalls'] = $finalConfig;

        parent::boot($app);
    }
public function boot ( \ Silex \ Application $ app ) { // Register firewalls foreach ( $ this -> firewalls as $ firewall ) { $ firewall -> register ( $ this ) ; } $ i = 0 ; $ firewalls = array ( ) ; foreach ( $ this -> unsecuredPatterns as $ pattern => $ v ) { $ firewalls [ 'unsecured_' . ( $ i ++ ) ] = array ( 'pattern' => $ pattern ) ; } $ finalConfig = array_merge ( $ firewalls , $ this -> firewallConfig ) ; $ app [ 'security.firewalls' ] = $ finalConfig ; parent :: boot ( $ app ) ; }
Boot with Silex Application
@param \Silex\Application $app
Boot with Silex Application