https://github.com/pixelart/shopware-roles-config
Import and export shopware roles from config files
https://github.com/pixelart/shopware-roles-config
Last synced: over 1 year ago
JSON representation
Import and export shopware roles from config files
- Host: GitHub
- URL: https://github.com/pixelart/shopware-roles-config
- Owner: pixelart
- License: mit
- Created: 2016-08-16T13:35:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-16T13:38:57.000Z (almost 10 years ago)
- Last Synced: 2025-01-21T09:31:09.828Z (over 1 year ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PixelartRolesConfig
===================
A quick shopware plugin to define backend user acl roles within YAML config
files and import them on e.g. deployments.
Installation
------------
```bash
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`:
```bash
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:
```bash
php bin/console pixelart:roles:import .misc/roles/
```
License
-------
The MIT License (MIT). Please see the [LICENSE file](LICENSE) for more
information.