mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-18 10:36:52 +03:00
Add recipe for odiseoteam/sylius-rbac-plugin (#2044)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
imports:
|
||||
- { resource: "@OdiseoSyliusRbacPlugin/config/config.yaml" }
|
||||
@@ -0,0 +1,3 @@
|
||||
odiseo_sylius_rbac_admin:
|
||||
resource: "@OdiseoSyliusRbacPlugin/config/routes/admin.yaml"
|
||||
prefix: /admin
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Odiseo\\SyliusRbacPlugin\\OdiseoSyliusRbacPlugin": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<bg=blue;fg=white> </>
|
||||
<bg=blue;fg=white> What's next? </>
|
||||
<bg=blue;fg=white> </>
|
||||
|
||||
* <fg=blue>Make</> your AdminUser administration-role aware: add
|
||||
<comment>AdministrationRoleAwareInterface</> and <comment>AdministrationRoleAwareTrait</>
|
||||
to your <comment>AdminUser</> entity. This plugin cannot do it for you -- that class is
|
||||
yours, and may already extend or implement other things.
|
||||
|
||||
* <fg=blue>Update</> your database schema:
|
||||
<comment>bin/console doctrine:migrations:migrate</>
|
||||
|
||||
* <fg=blue>Grant</> yourself access. A fresh install denies every administrator
|
||||
everything, including the screen that assigns roles:
|
||||
<comment>bin/console odiseo:rbac:grant <username-or-email> super_admin --create</>
|
||||
|
||||
* <fg=blue>Read</> the full installation guide, including the AdminUser snippet, at
|
||||
<comment>https://github.com/odiseoteam/SyliusRbacPlugin/blob/master/doc/installation.md</>
|
||||
Reference in New Issue
Block a user