diff --git a/symfony/security-bundle/3.3/config/packages/security.yaml b/symfony/security-bundle/3.3/config/packages/security.yaml index eea9b2ff..13e382d3 100644 --- a/symfony/security-bundle/3.3/config/packages/security.yaml +++ b/symfony/security-bundle/3.3/config/packages/security.yaml @@ -6,6 +6,7 @@ security: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false + # if you change the name of the firewall, update it in the packages/test/security.yaml file too main: anonymous: ~ diff --git a/symfony/security-bundle/3.3/config/packages/test/security.yaml b/symfony/security-bundle/3.3/config/packages/test/security.yaml new file mode 100644 index 00000000..5fca1be9 --- /dev/null +++ b/symfony/security-bundle/3.3/config/packages/test/security.yaml @@ -0,0 +1,7 @@ +# This configuration simplifies testing URLs protected by the security mechanism +# See https://symfony.com/doc/current/cookbook/testing/http_authentication.html +security: + firewalls: + # replace 'main' by the name of your own firewall + main: + http_basic: ~