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

@@ -3,8 +3,11 @@
declare(strict_types=1);
use Interop\Container\ContainerInterface;
use Shlinkio\Shlink\Common\Exec\ExecutionContext;
use Symfony\Component\Console\Application as CliApp;
/** @var ContainerInterface $container */
$container = include __DIR__ . '/../config/container.php';
putenv(sprintf('CURRENT_SHLINK_CONTEXT=%s', ExecutionContext::CLI));
$container->get(CliApp::class)->run();