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


1.0.0 2016-08-16 13:35 UTC

This package is auto-updated.

Last update: 2024-07-14 20:59:01 UTC


A quick shopware plugin to define backend user acl roles within YAML config files and import them on e.g. deployments.


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.


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/


The MIT License (MIT). Please see the LICENSE file for more information.