shlink/public/index.php

13 lines
369 B
PHP
Raw Normal View History

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;
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';
putenv(sprintf('CURRENT_SHLINK_CONTEXT=%s', ExecutionContext::WEB));
2018-03-26 19:49:28 +03:00
$container->get(Application::class)->run();