Methods summary
public
Psr\Http\Message\ResponseInterface
|
#
__invoke( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response )
Actions are callable, with http request and response as parameters.
Actions are callable, with http request and response as parameters.
Parameters
- $request
- A PSR-7 compatible Request instance.
- $response
- A PSR-7 compatible Response instance.
Returns
Psr\Http\Message\ResponseInterface
|
public
|
#
setDependencies( Pimple\Container $container )
Give an opportunity to children classes to inject dependencies from a Pimple Container.
Give an opportunity to children classes to inject dependencies from a Pimple Container.
Does nothing by default, reimplement in children classes.
The $container DI-container (from Pimple ) should not be saved or passed around, only to be used to
inject dependencies (typically via setters).
Parameters
- $container
- A dependencies container instance.
|
public
Charcoal\App\Action\ActionInterface
|
|
public
Charcoal\App\Action\ActionInterface
|
|
public
string
|
|
public
Charcoal\App\Action\ActionInterface
|
#
setSuccess( boolean $success )
Parameters
- $success
- Success flag (true / false).
Returns
|
public
boolean
|
|
public
Charcoal\App\Action\ActionInterface
|
|
public
string
|
|
public
Charcoal\App\Action\ActionInterface
|
|
public
string
|
|
public
string
|
|
public
array
|
|
public
Psr\Http\Message\ResponseInterface
|
#
run( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response )
Parameters
- $request
- A PSR-7 compatible Request instance.
- $response
- A PSR-7 compatible Response instance.
Returns
Psr\Http\Message\ResponseInterface
|
public
boolean
|
#
init( Psr\Http\Message\RequestInterface $request )
Initialize the action with a request.
Initialize the action with a request.
Parameters
- $request
- The request to initialize.
Returns
boolean Success / Failure.
|