Skip to content

Kirby 6.0.0

$methods->class()

Returns the auth method class for the provided type

$methods->class(string $type): class-string

Parameters

Name Type Default
$typerequired string no default value

Return type

class-string<Kirby\Auth\Method>

Exceptions

Type Description
Kirby\Exception\NotFoundException If no valid class is registered for the type

Parent class

Kirby\Auth\Methods