title: Symfony 4 FOSUserBundle Error too many redirect
body: <p>I'm using FriendsOfSymfony UserBundle in Symfony 4 and PHP 7.2. I've already finished my project and want to deploy it. So I
  1. Change php version in the server
  2. Change in .env file dev to log
  3. Just upload all my files to server (without dev cache, its too big)</p>
  
  <p>After opened the window I can see many redirection in developmanager in Google Chrome. Always to /login. Ok, I've tried change the security.yml and other strange things what I found in the internet. Nothin works. I've tried to delete checking access in some routes and just test if it'll work, but also not. </p>
  
  <p>My full security.yml
      security:
      encoders:
          FOS\UserBundle\Model\UserInterface: bcrypt
      providers:
          fos_userbundle:
              id: fos_user.user_provider.username_email</p>
  
  <pre><code>firewalls:
      dev:
          pattern: ^/(_(profiler|wdt)|css|images|js)/
          security: false
      main:
          pattern: ^/
          form_login:
              provider: fos_userbundle
              csrf_token_generator: security.csrf.token_manager
          logout: true
          anonymous: true
  
  role_hierarchy:
      ROLE_ADMIN:       ROLE_USER
      ROLE_SUPER_ADMIN: ROLE_ADMIN
  
  access_control:
      - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/register, role: ROLE_ADMIN }
      - { path: ^/resetting, role: ROLE_ADMIN }
      - { path: ^/admin/, role: ROLE_ADMIN }
      - { path: ^/profile, role: ROLE_USER }
      - { path: ^/profile/edit, role: ROLE_USER }
  
  access_denied_url: /
  </code></pre>
  
  <p>Anyone has this problem too?</p>