2016-04-16 12:57:11 +02:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2017-12-27 15:37:26 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2016-08-19 15:50:08 +02:00
|
|
|
use Interop\Container\ContainerInterface;
|
2018-11-24 09:29:51 +01:00
|
|
|
use Shlinkio\Shlink\Common\Exec\ExecutionContext;
|
2016-08-19 15:50:08 +02:00
|
|
|
use Symfony\Component\Console\Application as CliApp;
|
2016-04-16 12:57:11 +02:00
|
|
|
|
2016-08-19 15:50:08 +02:00
|
|
|
/** @var ContainerInterface $container */
|
|
|
|
$container = include __DIR__ . '/../config/container.php';
|
2018-11-24 09:29:51 +01:00
|
|
|
|
|
|
|
putenv(sprintf('CURRENT_SHLINK_CONTEXT=%s', ExecutionContext::CLI));
|
2017-07-05 20:04:44 +02:00
|
|
|
$container->get(CliApp::class)->run();
|