Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (29 sloc) 1.14 KB
function () use ($container) {
// our slim app, now, in any realistic case you wouldn't want to completely configure it here, but
// for this example this should be good enough
$app = new \Slim\App($container);
// we want to register at least some route to do something, right?
function ($request, $response, $args) {
/** @var \Knight23\Core\RunnerInterface $runner */
$runner = $this->getcontainer()->get(\Knight23\Core\RunnerInterface::class);
/** @var Psr\Http\Message\ResponseInterface $response */
"hello %s\n\napp: %s\nversion: %s",
return $response->withStatus(200);
// and don't forget to return the app here
return $app;