Documentation

RouteAction
in package

Table of Contents

parse()  : array<string|int, mixed>
Parse the given action into an array.
findCallable()  : callable
Find the callable in an action array.
makeInvokable()  : string
Make an action for an invokable controller.
missingAction()  : array<string|int, mixed>
Get an action for a route that has no action.

Methods

parse()

Parse the given action into an array.

public static parse(string $uri, mixed $action) : array<string|int, mixed>
Parameters
$uri : string
$action : mixed
Return values
array<string|int, mixed>

findCallable()

Find the callable in an action array.

protected static findCallable(array<string|int, mixed> $action) : callable
Parameters
$action : array<string|int, mixed>
Return values
callable

makeInvokable()

Make an action for an invokable controller.

protected static makeInvokable(string $action) : string
Parameters
$action : string
Return values
string

missingAction()

Get an action for a route that has no action.

protected static missingAction(string $uri) : array<string|int, mixed>
Parameters
$uri : string
Return values
array<string|int, mixed>

Search results