]> Raphaël G. Git Repositories - airbundle/commitdiff
Add register and edit default skipped fields
authorRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 08:06:17 +0000 (10:06 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 08:06:17 +0000 (10:06 +0200)
Remove useless constructor parameters from access denied handler

Resources/config/packages/rapsys_air.yaml

index 76da2bdecc5d62700f1ea0ab5a34690a17f263c6..84062fe598f408e337434ac0fea5f12ff6ed77bc 100644 (file)
@@ -43,6 +43,9 @@ rapsys_user:
             url: '%rapsys_air.site.url%'
     #Edit replacement
     edit:
             url: '%rapsys_air.site.url%'
     #Edit replacement
     edit:
+        field:
+            pseudonym: false
+            slug: false
         route:
             index: 'site.url'
         view:
         route:
             index: 'site.url'
         view:
@@ -75,6 +78,9 @@ rapsys_user:
             context:
     #Register replacement
     register:
             context:
     #Register replacement
     register:
+        field:
+            pseudonym: false
+            slug: false
         route:
             index: 'site.url'
             confirm: 'confirm_url'
         route:
             index: 'site.url'
             confirm: 'confirm_url'
@@ -290,7 +296,7 @@ services:
         tags: [ 'kernel.event_subscriber' ]
     #Register access denied handler
     Rapsys\AirBundle\Handler\AccessDeniedHandler:
         tags: [ 'kernel.event_subscriber' ]
     #Register access denied handler
     Rapsys\AirBundle\Handler\AccessDeniedHandler:
-        arguments: [ '@service_container', '@twig', '@router', '@request_stack', '@translator' ]
+        arguments: [ '@service_container', '@router', '@translator' ]
     #Register air fixtures
     Rapsys\AirBundle\DataFixtures\AirFixtures:
         tags: [ 'doctrine.fixture.orm' ]
     #Register air fixtures
     Rapsys\AirBundle\DataFixtures\AirFixtures:
         tags: [ 'doctrine.fixture.orm' ]