Source of file Auth.php
Size: 1,014 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Proxy/Auth.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Proxy; use Bluz\Auth\Auth as Instance; use Bluz\Auth\EntityInterface; /** * Proxy to Auth * * Example of usage * use Bluz\Proxy\Auth; * * $user = Auth::getIdentity(); * * @package Bluz\Proxy * @author Anton Shevchuk * * @method static Instance getInstance() * * @method static void setIdentity(EntityInterface $identity) * @see Instance::setIdentity() * * @method static EntityInterface getIdentity() * @see Instance::getIdentity() * * @method static void clearIdentity() * @see Instance::clearIdentity() */ final class Auth { use ProxyTrait; /** * Init instance * * @return Instance */ private static function initInstance() { $instance = new Instance(); $instance->setOptions(Config::getData('auth')); return $instance; } } |