title: How to disable HTTPS or change to HTTP in dev and prod version on symfony?
body: <p>My problem is like in the title.
  <br>
  <br> In my project i tried to add HTTPS to /login and /admin routes. Both routes are imported from third party bundles: login from <strong>FOSUserBundle</strong> and admin from <strong>EasyAdminBundle</strong>. To achieve that I added <code>requires_channel: https</code> to the <code>security.yml</code> file, like it was described in this thread <a href="https://symfony.com/doc/current/security/force_https.html" rel="nofollow noreferrer">https://symfony.com/doc/current/security/force_https.html</a>.
  <br> My <code>access_control</code> section looked like:</p>
  
  <pre><code>access_control:
      - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
      - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/admin/, role: ROLE_ADMIN, requires_channel: https }
  </code></pre>
  
  <p><br> I started the site through built-in server to check if it will force https connection and it was. Obviously there was an error because symfony built-in server doesn't support ssl connections but in the address bar there was <code>https://</code>. I uploaded this version to the server and I wanted to continue working on the next functionality, so I deleted the <code>requires_channel</code> entry but when I launch the page by typing <code>php bin/console server:start 0.0.0.0:80</code> and typing in the browser address bar <code>localhost/admin</code> symphony still forces https. My next guess was to change <code>requires_channel: https</code> to <code>requires_channel: http</code> but that did not work either. 
  <br> The same happens on the production server, ie HTTPS is still enforced when <code>requires_channel</code> is removed or set to HTTP, but there i can live with that because in the end i will have to generate certificate and launch ssl connection in apache config files, but I can't work on dev version.
  <br>
  <br> I looked for similar issues but mostly if threads was about symfony and HTTP or HTTPS, people asks how to force HTTPS but this I already did. I can't find similar problem to mine so please if someone have any idea what goes wrong feel free to response or if anyone already solved my problem or very similar one please paste links.
  <br><br><br>
  Full content of <code>security.yml</code> file:</p>
  
  <pre><code>security:
      encoders:
          FOS\UserBundle\Model\UserInterface: bcrypt
  
      role_hierarchy:
          ROLE_ADMIN:       ROLE_USER
          ROLE_SUPER_ADMIN: ROLE_ADMIN
  
      providers:
          fos_userbundle:
              id: fos_user.user_provider.username_email
  
      firewalls:
          main:
              pattern: ^/
              form_login:
                  provider: fos_userbundle
              logout:       true
              anonymous:    true
  
      access_control:
          - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: "%router.request_context.scheme%" }
          - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
          - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
          - { path: ^/admin/, role: ROLE_ADMIN, requires_channel: "%router.request_context.scheme%" }
  </code></pre>