\Charcoal\App\RouteActionRoute

Action Route Handler.

Summary

Methods
Properties
Constants
__construct()
createConfig()
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(array  $data) 

Create new action route

Dependencies

Required

  • config — ScriptRouteConfig

Optional

  • logger — PSR-3 Logger

Parameters

array $data

Dependencies.

createConfig()

createConfig(mixed|null  $data = null) : \Charcoal\App\Route\ActionRouteConfig

ConfigurableTrait > createConfig()

Parameters

mixed|null $data

Optional config data.

Returns

\Charcoal\App\Route\ActionRouteConfig

__invoke()

__invoke(\Pimple\Container  $container, \Psr\Http\Message\RequestInterface  $request, \Psr\Http\Message\ResponseInterface  $response) : \Psr\Http\Message\ResponseInterface

Parameters

\Pimple\Container $container

A container instance.

\Psr\Http\Message\RequestInterface $request

A PSR-7 compatible Request instance.

\Psr\Http\Message\ResponseInterface $response

A PSR-7 compatible Response instance.

Returns

\Psr\Http\Message\ResponseInterface