Class HandlerFactory
Factory for creating unauthorized exception handlers.
Namespace: Authorization\Middleware\UnauthorizedHandler
Method Summary
-
create() public static
Creates unauthorized request handler.
Method Detail
create() ΒΆ public static
create(string $name): Authorization\Middleware\UnauthorizedHandler\HandlerInterface
Creates unauthorized request handler.
Parameters
-
string
$name UnauthorizedHandler name.
Returns
Authorization\Middleware\UnauthorizedHandler\HandlerInterface
Throws
RuntimeException
When invalid handler encountered.