PHP code example of data-dog / acl-bundle

1. Go to this page and download the library: Download data-dog/acl-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

data-dog / acl-bundle example snippets

 php
namespace AclBundle\Resource;

interface ProviderInterface
{
    /**
     * Get a list of available ACL resources
     *
     * @return array - ['resource.string.action', ...]
     */
    function resources();
}
 php
$container->get('acl.access.decision_manager')->isGranted('edit', $formTypeObject);