Use permissions presets as initial settings for group permissions during migration

This commit is contained in:
Jan Böhmer 2023-01-23 21:46:24 +01:00
parent eaef115d4b
commit 29bce6f19f
2 changed files with 66 additions and 18 deletions

View file

@ -225,3 +225,7 @@ services:
App\Doctrine\Purger\ResetAutoIncrementPurgerFactory:
tags:
- { name: 'doctrine.fixtures.purger_factory', alias: 'reset_autoincrement_purger' }
# We are needing this service inside of a migration, where only the container is injected. So we need to define it as public, to access it from the container.
App\Services\UserSystem\PermissionPresetsHelper:
public: true