You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
459 B
PHP
20 lines
459 B
PHP
<?php
|
|
|
|
use Engelsystem\Application;
|
|
use Engelsystem\Middleware\Dispatcher;
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
|
|
require_once realpath(__DIR__ . '/../includes/engelsystem.php');
|
|
|
|
/** @var Application $app */
|
|
$app = app();
|
|
|
|
/** @var ServerRequestInterface $request */
|
|
$request = $app->get('psr7.request');
|
|
$middleware = $app->getMiddleware();
|
|
|
|
$dispatcher = new Dispatcher($middleware);
|
|
$dispatcher->setContainer($app);
|
|
|
|
$dispatcher->handle($request);
|