original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Boot with Silex Application
  @param \Silex\Application $app
docstring_tokens: Boot with Silex Application