2017 © Pedro Peláez
 

symfony-bundle platform-security-bundle

DigitalState Security Bundle

image

digitalstate/platform-security-bundle

DigitalState Security Bundle

  • Tuesday, February 21, 2017
  • by ds
  • Repository
  • 2 Watchers
  • 0 Stars
  • 149 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Platform-Security-Bundle

The Security bundle extends the OroSecurityBundle and provides the developers additional core security functionality., (*1)

Code Climate Test Coverage, (*2)

Table of Contents

Migration Extensions

This bundle introduces a convenient migration extension to help with loading yml-based acl data fixtures., (*3)

Example:, (*4)

<?php

namespace Gov\Bundle\DemoBundle\Migrations\Data\ORM;

use Doctrine\Common\DataFixtures\AbstractFixture;
use Ds\Bundle\UserBundle\Migration\Extension\AclExtensionAwareInterface;
use Ds\Bundle\UserBundle\Migration\Extension\AclExtensionAwareTrait;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Doctrine\Common\Persistence\ObjectManager;

class LoadAclData extends AbstractFixture implements AclExtensionAwareInterface, ContainerAwareInterface
{
    use AclExtensionAwareTrait;
    use ContainerAwareTrait;

    public function load(ObjectManager $manager)
    {
        // Currently extensions are not automatically injected via the *AwareInterface.
        $this->setAclExtension($this->container->get('ds.security.migration.extension.acl'));
        //

        $resource = __DIR__.'/../../../Resources/data/acl.yml';
        $this->aclExtension->import($resource, $manager);
    }
}
acl:
    ROLE_CASE_MANAGER:
        Entity:DsCaseBundle:CaseEntity: [ VIEW_SYSTEM, CREATE_SYSTEM, EDIT_SYSTEM, DELETE_SYSTEM, ASSIGN_SYSTEM ]
        Entity:DsCaseStatusBundle:Status: [ VIEW_SYSTEM, CREATE_SYSTEM, EDIT_SYSTEM, DELETE_SYSTEM, ASSIGN_SYSTEM ]

Todo

The Versions

21/02 2017

dev-master

9999999-dev https://github.com/DigitalState/Platform-Security-Bundle.git

DigitalState Security Bundle

  Sources   Download

MIT

The Requires

 

notifications oro

21/02 2017

dev-develop

dev-develop https://github.com/DigitalState/Platform-Security-Bundle.git

DigitalState Security Bundle

  Sources   Download

MIT

The Requires

 

notifications oro

21/02 2017

0.3.0

0.3.0.0 https://github.com/DigitalState/Platform-Security-Bundle.git

DigitalState Security Bundle

  Sources   Download

MIT

The Requires

 

notifications oro

09/02 2017

0.2.0

0.2.0.0 https://github.com/DigitalState/Platform-Security-Bundle.git

DigitalState Security Bundle

  Sources   Download

MIT

The Requires

 

notifications oro

20/01 2017

0.1.2

0.1.2.0 https://github.com/DigitalState/Platform-Security-Bundle.git

DigitalState Security Bundle

  Sources   Download

MIT

The Requires

 

notifications oro

10/01 2017

0.1.0

0.1.0.0 https://github.com/DigitalState/Platform-Security-Bundle.git

DigitalState Security Bundle

  Sources   Download

MIT

The Requires

 

notifications oro

10/01 2017

0.1.1

0.1.1.0 https://github.com/DigitalState/Platform-Security-Bundle.git

DigitalState Security Bundle

  Sources   Download

MIT

The Requires

 

notifications oro