This bundle will use the layout in
\src\pimcore-root\app\config\roles.yml to create and save roles in the pimcore admin. It will not delete or remove existing roles. In the repo, their is an example roles.yml file, with the layout the command expects.
We will soon be implementing
Workspaces. Check back soon!
Installing the package via composer
This bundle is easily installed via composer:
composer require torqit/pimcore-role-creator-bundle
Steps to setting up the layout of your folder structure in pimcore admin:
- Create a
roles.ymlfile, with the layout you require.
- Place the
roles.ymlfile you created in your configuration yaml folder like:
- Make sure you register the
\src\pimcore-root\app\AppKernel.php. Registering the bundle is as easy as adding a line in the registerBundlesToCollection function, like so:
- Run the bundle, with the command: