2016-04-10 10:38:07 +03:00
|
|
|
<?php
|
2017-10-12 11:03:14 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-03-26 19:49:28 +03:00
|
|
|
use Psr\Container\ContainerInterface;
|
2018-11-24 11:29:51 +03:00
|
|
|
use Shlinkio\Shlink\Common\Exec\ExecutionContext;
|
2016-04-10 10:52:44 +03:00
|
|
|
use Zend\Expressive\Application;
|
2016-04-10 10:38:07 +03:00
|
|
|
|
2016-04-17 21:27:24 +03:00
|
|
|
/** @var ContainerInterface $container */
|
|
|
|
$container = include __DIR__ . '/../config/container.php';
|
2018-11-24 11:29:51 +03:00
|
|
|
|
|
|
|
putenv(sprintf('CURRENT_SHLINK_CONTEXT=%s', ExecutionContext::WEB));
|
2018-03-26 19:49:28 +03:00
|
|
|
$container->get(Application::class)->run();
|