class RouteAction (View source)

Methods

static array
parse(string $uri, mixed $action)

Parse the given action into an array.

static array
missingAction(string $uri)

Get an action for a route that has no action.

static callable
findCallable(array $action)

Find the callable in an action array.

static string
makeInvokable(string $action)

Make an action for an invokable controller.

Details

static array parse(string $uri, mixed $action)

Parse the given action into an array.

Parameters

string $uri
mixed $action

Return Value

array

static protected array missingAction(string $uri)

Get an action for a route that has no action.

Parameters

string $uri

Return Value

array

Exceptions

LogicException

static protected callable findCallable(array $action)

Find the callable in an action array.

Parameters

array $action

Return Value

callable

static protected string makeInvokable(string $action)

Make an action for an invokable controller.

Parameters

string $action

Return Value

string

Exceptions

UnexpectedValueException