FluxBB\Server\AuthorizationServer::getSubject PHP Method

getSubject() protected method

Get the authorization subject from the environment.
protected getSubject ( ) : FluxBB\Models\HasPermissions
return FluxBB\Models\HasPermissions
    protected function getSubject()
    {
        $subject = $this->container->make('Illuminate\\Contracts\\Auth\\Guard')->user();
        return $subject ?: new Guest();
    }