mirror of
https://github.com/Karaka-Management/oms-Sales.git
synced 2026-02-16 11:38:41 +00:00
make data in routing endpoint array
This commit is contained in:
parent
984263d488
commit
f6d69dcb51
|
|
@ -36,13 +36,13 @@ final class BackendController extends Controller
|
||||||
*
|
*
|
||||||
* @param RequestAbstract $request Request
|
* @param RequestAbstract $request Request
|
||||||
* @param ResponseAbstract $response Response
|
* @param ResponseAbstract $response Response
|
||||||
* @param mixed $data Generic data
|
* @param array $data Generic data
|
||||||
*
|
*
|
||||||
* @return RenderableInterface Response can be rendered
|
* @return RenderableInterface Response can be rendered
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : RenderableInterface
|
public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, array $data = []) : RenderableInterface
|
||||||
{
|
{
|
||||||
$head = $response->data['Content']->head;
|
$head = $response->data['Content']->head;
|
||||||
$nonce = $this->app->appSettings->getOption('script-nonce');
|
$nonce = $this->app->appSettings->getOption('script-nonce');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user