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);
    }