title: Symfony security basic authentication
body: <p>From the symfony book <a href="http://symfony.com/doc/current/book/security.html#security-authorization">http://symfony.com/doc/current/book/security.html#security-authorization</a> I'm trying to set up the basic http authentication.</p>
  
  <p>The <code>security.yml</code> file looks like this:</p>
  
  <pre><code>security:
      providers:
          in_memory:
              memory: ~
  
      firewalls:
          dev:
              pattern: ^/(_(profiler|wdt|error)|css|images|js)/
              security: false
  
          default:
              anonymous: ~
              http_basic: ~
  
          access_control:
              - { path: ^/login, roles: ROLE_USER }
  </code></pre>
  
  <p>But as soon as I add</p>
  
  <pre><code>    access_control:
          - { path: ^/login, roles: ROLE_USER }
  </code></pre>
  
  <p>I get a symfony error saying: </p>
  
  <pre><code>InvalidConfigurationException in ArrayNode.php line 309:
  Unrecognized option "0" under "security.firewalls.access_control"
  </code></pre>
  
  <p>What am I doing wrong? What to do to fix it?</p>