Jobs setup
This commit is contained in:
14
ui/common/Controller/Jobs.php
Normal file
14
ui/common/Controller/Jobs.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace ProVM\Common\Controller;
|
||||
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Slim\Views\Blade as View;
|
||||
|
||||
class Jobs
|
||||
{
|
||||
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, View $view): ResponseInterface
|
||||
{
|
||||
return $view->render($response, 'jobs.list');
|
||||
}
|
||||
}
|
@ -29,7 +29,7 @@ class Logging
|
||||
{
|
||||
$response = $handler->handle($request);
|
||||
$output = [
|
||||
'uri' => var_export($request->getUri(), true),
|
||||
'uri' => print_r($request->getUri(), true),
|
||||
'body' => $request->getParsedBody()
|
||||
];
|
||||
$this->getLogger()->info(\Safe\json_encode($output, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
|
||||
|
Reference in New Issue
Block a user