class Routing (View source)

Class used to warm up the routing cache and manage routing.

Constants

ROUTES_CACHE_FILE

Properties

static string deprecated $route

Methods

static bool
skipCache()

No description

static bool
canWriteCache()

No description

static Dispatcher
getDispatcher()

No description

static bool
writeCache(string $cacheContents)

No description

static Response|null
callControllerForRoute(ServerRequest $request, Dispatcher $dispatcher, ContainerInterface $container, ResponseFactory $responseFactory)

Call associated controller for a route using the dispatcher

static Response
callSetupController(ServerRequest $request, ResponseFactory $responseFactory)

No description

static string
getCleanPathInfo()

PATH_INFO could be compromised if set, so remove it from PHP_SELF and provide a clean PHP_SELF here

Details

static bool skipCache()

No description

Return Value

bool

static bool canWriteCache()

No description

Return Value

bool

static Dispatcher getDispatcher()

No description

Return Value

Dispatcher

static bool writeCache(string $cacheContents)

No description

Parameters

string $cacheContents

Return Value

bool

static Response|null callControllerForRoute(ServerRequest $request, Dispatcher $dispatcher, ContainerInterface $container, ResponseFactory $responseFactory)

Call associated controller for a route using the dispatcher

Parameters

ServerRequest $request
Dispatcher $dispatcher
ContainerInterface $container
ResponseFactory $responseFactory

Return Value

Response|null

static Response callSetupController(ServerRequest $request, ResponseFactory $responseFactory)

No description

Parameters

ServerRequest $request
ResponseFactory $responseFactory

Return Value

Response

static string getCleanPathInfo()

PATH_INFO could be compromised if set, so remove it from PHP_SELF and provide a clean PHP_SELF here

Return Value

string