ICanBoogie/Routing master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Routing
      • Controller
      • Route
      • RouteDispatcher

Classes

  • ActionEvent
  • BeforeActionEvent

Traits

  • ActionTrait

Trait ActionTrait

Action controller implementation.

Namespace: ICanBoogie\Routing\Controller
Located at Controller/ActionTrait.php

Methods summary

protected string
# get_action( )

Returns the action being executed.

Returns the action being executed.

Returns

string
protected ICanBoogie\HTTP\Response|mixed
# action( ICanBoogie\HTTP\Request $request )

Dispatch the request to the appropriate method.

Dispatch the request to the appropriate method.

The $request property is initialized.

Parameters

$request

Returns

ICanBoogie\HTTP\Response|mixed
protected callable
# resolve_action( ICanBoogie\HTTP\Request $request )

Resolves the action into a callable.

Resolves the action into a callable.

Parameters

$request

Returns

callable
protected string
# resolve_action_method( string $action, ICanBoogie\HTTP\Request $request )

Resolves the method associated with the action.

Resolves the method associated with the action.

Parameters

$action
Action name.
$request

Returns

string
The method name.
protected array
# resolve_action_args( string $action, ICanBoogie\HTTP\Request $request )

Resolves the arguments associated with the action.

Resolves the arguments associated with the action.

Parameters

$action
Action name.
$request

Returns

array
The arguments for the action.

Properties summary

Magic properties

public read-only ICanBoogie\Routing\Route $route
public read-only string $action

The action being executed.

ICanBoogie/Routing master API documentation generated by ApiGen