shlink/bin/cli

14 lines
407 B
Text
Raw Normal View History

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);
use Interop\Container\ContainerInterface;
use Shlinkio\Shlink\Common\Exec\ExecutionContext;
use Symfony\Component\Console\Application as CliApp;
2016-04-16 12:57:11 +02:00
/** @var ContainerInterface $container */
$container = include __DIR__ . '/../config/container.php';
putenv(sprintf('CURRENT_SHLINK_CONTEXT=%s', ExecutionContext::CLI));
$container->get(CliApp::class)->run();