$request
$request : \Psr\Http\Message\RequestInterface
This is a plugin used to generate data to be serialized before being transported by an HTTP Response.
$application : \Gishiki\Core\Application|null
$data : \Gishiki\Algorithms\Collections\SerializableCollection
__construct(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response, \Gishiki\Core\Application|null $app = null)
Assembler constructor: setup the response ready to be filled nd used
Warning: you should never attempt to use another construction in your plugin, unless it calls parent::__construct()
\Psr\Http\Message\RequestInterface | $request | the HTTP request |
\Psr\Http\Message\ResponseInterface | $response | the HTTP response |
\Gishiki\Core\Application|null | $app | the current application instance |
assemblyWith(\Closure $callable, mixed $input) : mixed
Execute the given task in order to fulfill the given request
\Closure | $callable | the task to be ran |
mixed | $input | input value for generating the response |
the error preventing function execution
the value returned from the task
assembly() : \Gishiki\Algorithms\Collections\SerializableCollection
Get what has been built by successive calls to assemblyWith.
what has been build