This plugin does NOT provide any security!
It only hides specific menu points in the backend for defined set of roles. But if a person knows the urls the sites are still accessable.
To really manage access for some roles we recommend to have a look at Sylius Access Control Layer Plugin from bitbag
This plugin is for sylius
Get a full list of configuration: bin/console config:dump-reference solution_drive_sylius_admin_security_through_obscurity
Example:
solution_drive_sylius_admin_security_through_obscurity:
additional_admin_roles:
- ROLE1
- ROLE2
hidden_menus:
ROLE1:
configuration: ~
ROLE2:
catalog:
- products
Prepare environment (we only need this once per environment)
-
test
environment:$ composer install $ (cd tests/Application && yarn install) $ (cd tests/Application && yarn run gulp) $ (cd tests/Application && bin/console assets:install web -e test) $ (cd tests/Application && bin/console doctrine:database:create -e test) $ (cd tests/Application && bin/console doctrine:schema:create -e test)
-
dev
environment:$ composer install $ (cd tests/Application && yarn install) $ (cd tests/Application && yarn run gulp) $ (cd tests/Application && bin/console assets:install web -e dev) $ (cd tests/Application && bin/console doctrine:database:create -e dev) $ (cd tests/Application && bin/console doctrine:schema:create -e dev)
-
PHPUnit
$ bin/phpunit
-
PHPSpec
$ bin/phpspec run
-
Behat (non-JS scenarios)
$ bin/behat --tags="~@javascript"
-
Behat (JS scenarios)
-
Download Chromedriver
-
Run Selenium server with previously downloaded Chromedriver:
$ bin/selenium-server-standalone -Dwebdriver.chrome.driver=chromedriver
-
Run test application's webserver on
localhost:8080
:$ (cd tests/Application && bin/console server:run 127.0.0.1:8080 -d web -e test)
-
Run Behat:
$ bin/behat --tags="@javascript"
-
-
Using
test
environment:$ (cd tests/Application && bin/console sylius:fixtures:load -e test) $ (cd tests/Application && bin/console server:run -d public -e test)
-
Using
dev
environment:$ (cd tests/Application && bin/console sylius:fixtures:load -e dev) $ (cd tests/Application && bin/console server:run -d public -e dev)