pixelart / shopware-roles-config
Import and export shopware roles from config files
Installs: 407
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:shopware-backend-plugin
Requires
- composer/installers: ^1.0.9
- symfony/filesystem: ^2.7
- symfony/finder: ^2.7
- symfony/yaml: ^2.7
Requires (Dev)
- shopware/shopware: ^5.1
This package is auto-updated.
Last update: 2024-11-14 21:40:07 UTC
README
A quick shopware plugin to define backend user acl roles within YAML config files and import them on e.g. deployments.
Installation
composer require pixelart/shopware-roles-config
It is recommended that you add
engine/Shopware/Plugins/Local/Backend/PixelartRolesConfig
to your
.gitignore
file if you ignore the composer vendor
dir too.
Usage
First you need to export all roles to config files. At the current state
only all roles are exported and imported at once. For example you can store
your roles in .misc/roles
:
php bin/console pixelart:roles:export .misc/roles/
Then you should get one file per backend role. Take care, the filename is idempotent, which means you should never rename it. Also the name of the role in the backend is slugified and not allowed to renamed anymore.
Now you can commit your roles into your VCS and change it as you need it. After changes you can import them with:
php bin/console pixelart:roles:import .misc/roles/
License
The MIT License (MIT). Please see the LICENSE file for more information.