title: How to solve error when default_target_path is included in Security.yaml?
body: <p>I'm getting the error which surprises me because in below security.yaml file </p>
  
  <pre><code>     default_target_path: createEvent
  </code></pre>
  
  <p>is giving me an error.
  If I include default_target_path: createEvent in security.yaml I get</p>
  
  <pre><code>The file "E:\Symfony\myproj\config/packages/security.yaml" does not contain valid YAML in E:\Symfony\myproj\config/packages/security.yaml (which is loaded in resource "E:\Symfony\myproj\config/packages/security.yaml").
  </code></pre>
  
  <p>If I remove default_target_path then it is working well, but I'm unable to redirect after login.</p>
  
  <pre><code>security:
  # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
  encoders:
      App\Entity\User:
          algorithm: bcrypt
  
  providers:
      db_provider:
          entity:
              class: App\Entity\User
              property: uname
  
  
  firewalls:
      dev:
          pattern: ^/(_(profiler|wdt)|css|images|js)/
          security: false
      main:
          anonymous: true
          provider: db_provider
          form_login:
              login_path: login
              check_path: login   
              default_target_path: createEvent
  
          logout: 
              path: /logout
              target: /login    
  access_control:
       - { path: ^/login/, roles: ROLE_ADMIN }
       - { path: ^/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
      # - { path: ^/profile, roles: ROLE_USER }
  </code></pre>