Updated recipes of security-bundle

This commit is contained in:
Jan Böhmer 2020-01-07 19:25:19 +01:00
parent 508f70e7d6
commit 649bfc36c4
3 changed files with 10 additions and 10 deletions

View file

@ -4,9 +4,7 @@ monolog:
type: fingers_crossed
action_level: error
handler: nested
excluded_404s:
# regex: exclude all 404 errors from the logs
- ^/
excluded_http_codes: [404, 405]
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"

View file

@ -5,6 +5,8 @@ security:
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
providers:
in_memory: { memory: null }
# used to reload user from session & other features (e.g. switch_user)
app_user_provider:
entity:
@ -15,7 +17,7 @@ security:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: true
anonymous: lazy
user_checker: App\Security\UserChecker
two_factor: