Documentation

StaticRoutes

Trait StaticRoutes

Tags
author

Dodonov A.A.

version

v.1.0 (2021/09/27)

copyright

Copyright (c) 2021, http://aeon.su

Table of Contents

$staticRoutes  : mixed
List of static routes for all supported request methods
getStaticRouteProcessor()  : mixed
Method returns route handler
getStaticRoutes()  : array<string|int, mixed>
Method returns static routes handlers for the specified request methods
getUniversalRouteProcessor()  : mixed
Method returns route handler
setCalledRoute()  : void
Method sets $calledRoute

Properties

$staticRoutes

List of static routes for all supported request methods

protected mixed $staticRoutes = ['GET' => [], 'POST' => [], 'PUT' => [], 'DELETE' => [], 'OPTION' => [], 'PATCH' => []]

Methods

getStaticRouteProcessor()

Method returns route handler

protected getStaticRouteProcessor(string $route) : mixed
Parameters
$route : string

routes

Return values
mixed

getStaticRoutes()

Method returns static routes handlers for the specified request methods

protected getStaticRoutes(string $requestMethod) : array<string|int, mixed>
Parameters
$requestMethod : string

request method

Return values
array<string|int, mixed>

getUniversalRouteProcessor()

Method returns route handler

protected getUniversalRouteProcessor() : mixed
Return values
mixed

setCalledRoute()

Method sets $calledRoute

protected abstract setCalledRoute(string $calledRoute) : void
Parameters
$calledRoute : string

called router

Return values
void

Search results

    Яндекс.Метрика