php - Unrecognized option "knpu_guard" under "security.firewalls.main" (Symfony) -
i add facebook login option website. try follow this tutorial. if add knpu_guard
part under main section, error:
unrecognized option "knpu_guard" under "security.firewalls.main"
my firewalls
section in security.yml
looks this:
firewalls: main: anonymous: ~ #pattern: ^/ provider: our_db_provider form_login: login_path: login check_path: login logout: path: /logout target: / knpu_guard: authenticators: - app.form_login_authenticator - app.api_token_authenticator - app.facebook_authenticator # default, use start() function formloginauthenticator entry_point: app.form_login_authenticator
i added knpu_guard
section, nothing else changed under firewalls
section
i think tutorial little bit obsolete because knpu_guard
no longer accepted.
you can use guard
instead key in security.yml
file
try use this
form_login: login_path: login check_path: login provider: user_provider #where provider? shouldn't fos_userbundle example? anonymous: true
Comments
Post a Comment