shlink/public/index.php

13 lines
369 B
PHP
Raw Normal View History

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