title: InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area"
body: <p>I'm new symfony user and follow the <a href="http://symfony.com/doc/current/book/security.html#logging-out" rel="nofollow">tutorial</a>. 
   My current task is to add logout script but unfortunately it gives me this error: </p>
  
  <pre><code>InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area".
  </code></pre>
  
  <p>My security.yml file looks like this:</p>
  
  <pre><code>security:
  
      # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
      providers:
          in_memory:
              memory:
                  users:
                      ryan:
                          password: $2a$12$LCY0MefVIEc3TYPHV9SNnuzOfyr2p/AXIGoQJEDs4am4JwhNz/jli
                          roles: 'ROLE_USER'
                      admin:
                          password: $2a$12$cyTWeE9kpq1PjqKFiWUZFuCRPwVyAZwm4XzMZ1qPUFl7/flCM3V0G
                          roles: 'ROLE_ADMIN'
  
      firewalls:
          secured_area:
              # ...
              logout:
                  path:   /logout
                  target: /
          # disables authentication for assets and the profiler, adapt it according to your needs
          dev:
              pattern: ^/(_(profiler|wdt)|css|images|js)/
              security: false
  
          main:
              anonymous: ~
              # activate different ways to authenticate
  
              http_basic: ~
              # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
  
              # form_login: ~
              # http://symfony.com/doc/current/cookbook/security/form_login_setup.html
  
      access_control:
          # require ROLE_ADMIN for /admin*
          - { path: ^/admin, roles: ROLE_ADMIN }
  
      encoders:
          Symfony\Component\Security\Core\User\User:
              algorithm: bcrypt
              cost: 12
  </code></pre>