netbrothers-gmbh / syncacc-bundle
Using NetBrothers Access Control Center in Symfony
Installs: 818
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.2
- ext-json: *
- symfony/console: >=7 <8
README
This is a symfony bundle for using NetBrothers Access Control Center (ACC).
The ACC offers you a way to handle permissions based on roles and routes. This bundle communicates with your ACC-instance and synchronizes your defined permissions into your project.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
composer require netbrothers-gmbh/version-bundle
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
composer require netbrothers-gmbh/version-bundle
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
// config/bundles.php return [ // ... NetBrothers\VersionBundle\NetBrothersVersionBundle::class => ['all' => true], ];
Setup
You have to set up the bundle:
-
Copy
installation/config/packages/netbrothers_syncacc.yaml
to symfony's config path. -
Set the credentials either in
.env
-file ornetbrothers_syncacc.yaml
:
-
Clear symfony's cache.
-
Create tables by migration.
Usage
- Open a command console, enter your project directory and execute the following command:
php bin/console netbrothers:acc
You can specify some options:
CAUTION: Option acl
only works, if table acl_role is filled.
Author
Stefan Wessel, NetBrothers GmbH
Licence
MIT