symfony3 configuration with yaml

1.1k Views Asked by At

I am using Guard as new authentification system. I registered a new service like this:

app.form_login_authenticator:
    class: AppBundle\Security\FormLoginAuthenticator
    arguments:
        - @security.password_encoder
        - @router

and throws exception:

../app/config/config.yml" does not contain valid YAML

Anybody could imagine why?

Thanks and Greetings!

1

There are 1 best solutions below

1
On

Try

app.form_login_authenticator:
    class: AppBundle\Security\FormLoginAuthenticator
    arguments: ["@security.password_encoder","@router"]