netbrothers-gmbh/syncacc-bundle

Using NetBrothers Access Control Center in Symfony

v2.0.0 2024-05-31 12:41 UTC

This package is auto-updated.

Last update: 2024-12-01 00:08:30 UTC


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:

  1. Copy installation/config/packages/netbrothers_syncacc.yaml to symfony's config path.

  2. Set the credentials either in .env-file or netbrothers_syncacc.yaml:

  1. Clear symfony's cache.

  2. Create tables by migration.

Usage

  1. 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

nb.logo

Licence

MIT