Skip to content
Security from namespace to action controllers by adding roles to database
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Reflexe/Bundle/SecurityBundle
.gitignore
README.md
build.xml
composer.json
phpmd.xml
phpunit.xml

README.md

ReflexeSecurityBundle

Provide Security From Namespace to actions in controllers by specifying required roles.

NB: This bundle was created because the JMSSecurityExtraBundle is no longer provided in Symfony 2.3 (due to a license incompatibility) and we needed this type of features

Requirements

  • PHP 5.3
  • Symfony 2.3

Installation

Installation is broken down in the following steps:

  1. Download ReflexeSecurityBundle using composer
  2. Enable the Bundle

Step 1: Download ReflexeSecurityBundle using composer

Add ReflexeSecurityBundle in your composer.json:

{
    "require": {
        "Reflexe/SecurityBundle": "*",
        ...
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update Reflexe/SecurityBundle

Composer will install the bundle to your project's vendor/Reflexe directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Reflexe\Bundle\SecurityBundle\ReflexeSecurityBundle(),
    );
}

Note that you can configure the firewall in app/config/security.yml.

You can’t perform that action at this time.