Source of file Acl.php
Size: 0,818 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Proxy/Acl.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?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() { return new Instance(); } } |