Interfaces
(all in the Centum\Interfaces\Router
namespace)
Centum\Interfaces\Router\ControllerInterface
No methods.
Centum\Interfaces\Router\ExceptionHandlerInterface
handle(
Centum\Interfaces\Http\RequestInterface $request,
Throwable $throwable
): Centum\Interfaces\Http\ResponseInterface
Centum\Interfaces\Router\GroupInterface
getMiddleware(): Centum\Interfaces\Router\MiddlewareInterface
getRoutes(): array<Centum\Interfaces\Router\RouteInterface>
get(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class,
non-empty-string $method
): Centum\Interfaces\Router\RouteInterface
post(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class,
non-empty-string $method
): Centum\Interfaces\Router\RouteInterface
head(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class,
non-empty-string $method
): Centum\Interfaces\Router\RouteInterface
put(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class,
non-empty-string $method
): Centum\Interfaces\Router\RouteInterface
delete(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class,
non-empty-string $method
): Centum\Interfaces\Router\RouteInterface
trace(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class,
non-empty-string $method
): Centum\Interfaces\Router\RouteInterface
options(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class,
non-empty-string $method
): Centum\Interfaces\Router\RouteInterface
connect(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class,
non-empty-string $method
): Centum\Interfaces\Router\RouteInterface
patch(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class,
non-empty-string $method
): Centum\Interfaces\Router\RouteInterface
crud(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class
): void
submission(
string $uri,
class-string<Centum\Interfaces\Router\ControllerInterface> $class
): void
Centum\Interfaces\Router\MiddlewareInterface
check(
Centum\Interfaces\Http\RequestInterface $request
): bool
Centum\Interfaces\Router\ParametersInterface
get(
non-empty-string $name,
mixed $defaultValue = null
): mixed
has(
non-empty-string $name
): bool
toArray(): array<non-empty-string, mixed>
Centum\Interfaces\Router\ReplacementInterface
getIdentifier(): non-empty-string
getRegularExpression(): non-empty-string
filter(
string $value
): mixed
Centum\Interfaces\Router\RouteInterface
getHttpMethod(): non-empty-string
getUri(): string
getClass(): class-string<Centum\Interfaces\Router\ControllerInterface>
getMethod(): non-empty-string
getParameters(): array<non-empty-string, string>
Centum\Interfaces\Router\RouterInterface
group(
Centum\Interfaces\Router\MiddlewareInterface $middleware = null
): Centum\Interfaces\Router\GroupInterface
addExceptionHandler(
class-string<Centum\Interfaces\Router\ExceptionHandlerInterface> $exceptionHandlerClass
): void
handle(
Centum\Interfaces\Http\RequestInterface $request
): Centum\Interfaces\Http\ResponseInterface