title: All urls behind firewall in Symfony2
body: <p>I am creating an application which is users only. So you HAVE to log in to access any url.</p>
  
  <p>At the moment I have this:</p>
  
  <pre><code>firewalls:
      main:
          pattern: ^/
          form_login:
              provider: fos_userbundle
              csrf_provider: form.csrf_provider
  
          logout:       true
          anonymous:    true
  
      dev:
          pattern: ^/(_(profiler|wdt)|css|images|js)/
          security: false
  
      default:
          anonymous: ~
  
  access_control:
      - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/, role: IS_AUTHENTICATED }
      - { path: ^/admin/, role: ROLE_ADMIN }
  </code></pre>
  
  <p>But when I log in I get stuck on the security check. What is the best way to put all my urls behind a firewall?</p>