13 namespace Fossology\UI\Api\Middlewares;
15 require_once dirname(__FILE__, 5) .
"/lib/php/bootstrap.php";
17 use Psr\Http\Message\ResponseInterface;
18 use Psr\Http\Message\ServerRequestInterface as Request;
19 use Psr\Http\Server\RequestHandlerInterface as RequestHandler;
35 public function __invoke(Request $request, RequestHandler $handler) : ResponseInterface
38 $timingLogger = $container->get(
"log.timing");
41 $timingLogger->toc(
"setup plugins");
43 $response = $handler->handle($request);
Middleware to initialize FOSSology for Slim framework.
__invoke(Request $request, RequestHandler $handler)