Updated config so that shlink logger dynamically uses standard output when running with swoole

This commit is contained in:
Alejandro Celaya
2018-11-24 09:29:51 +01:00
parent 16590b2dbb
commit 2fc2ad98aa
6 changed files with 37 additions and 4 deletions

View File

@@ -2,8 +2,11 @@
declare(strict_types=1);
use Psr\Container\ContainerInterface;
use Shlinkio\Shlink\Common\Exec\ExecutionContext;
use Zend\Expressive\Application;
/** @var ContainerInterface $container */
$container = include __DIR__ . '/../config/container.php';
putenv(sprintf('CURRENT_SHLINK_CONTEXT=%s', ExecutionContext::WEB));
$container->get(Application::class)->run();