__construct()
__construct(array $data)
Create new action route
Dependencies
Required
config
— ScriptRouteConfig
Optional
logger
— PSR-3 Logger
Parameters
array | $data | Dependencies. |
Action Route Handler.
createConfig(mixed|null $data = null) : \Charcoal\App\Route\ActionRouteConfig
ConfigurableTrait > createConfig()
mixed|null | $data | Optional config data. |
__invoke(\Pimple\Container $container, \Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface
\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. |