Browse Source

fixup! src: Set up an inventory helper

master
Elis Hirwing 3 years ago
parent
commit
fcf8d5a48a
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 2
      public/index.php

2
public/index.php

@ -21,7 +21,7 @@ $app->get('/inventory/{item}', function (Request $request, Response $response, a
*/
$container = $app->getContainer();
$container['logger'] = function (Slim\Container $c) {
$container[Logger::class] = function (Slim\Container $c) {
$logger = new \Monolog\Logger('inventory-logger');
$logger->pushProcessor(new \Monolog\Processor\PsrLogMessageProcessor());

Loading…
Cancel
Save