Nette\Security\User::__construct PHP Method

__construct() public method

public __construct ( Nette\Security\IUserStorage $storage, Nette\Security\IAuthenticator $authenticator = NULL, Nette\Security\IAuthorizator $authorizator = NULL )
$storage Nette\Security\IUserStorage
$authenticator Nette\Security\IAuthenticator
$authorizator Nette\Security\IAuthorizator
    public function __construct(IUserStorage $storage, IAuthenticator $authenticator = NULL, IAuthorizator $authorizator = NULL)
    {
        $this->storage = $storage;
        $this->authenticator = $authenticator;
        $this->authorizator = $authorizator;
    }

Usage Example

Beispiel #1
0
 public function __construct(IUserStorage $storage, IAuthenticator $authenticator = null, IAuthorizator $authorizator = null, UserService $userService)
 {
     parent::__construct($storage, $authenticator, $authorizator);
     $this->userService = $userService;
 }
All Usage Examples Of Nette\Security\User::__construct