for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Bluz Framework Component
*
* @copyright Bluz PHP Team
* @link https://github.com/bluzphp/framework
*/
declare(strict_types=1);
namespace Bluz\Proxy;
use Bluz\Acl\Acl as Instance;
* Proxy to Acl
* Example of usage
* use Bluz\Proxy\Acl;
* if (!Acl::isAllowed('users', 'profile')) {
* throw new Exception('You do not have permission to access user profiles');
* }
* @package Bluz\Proxy
* @author Anton Shevchuk
* @method static Instance getInstance()
* @method static bool isAllowed($module, $privilege)
* @see Instance::isAllowed()
final class Acl
{
use ProxyTrait;
* Init instance
* @return Instance
private static function initInstance(): Instance
initInstance()
This check looks for private methods that have been defined, but are not used inside the class.
return new Instance();
}
This check looks for private methods that have been defined, but are not used inside the class.