mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-30 19:36:40 +03:00
17 lines
514 B
PHP
Executable file
17 lines
514 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
use Interop\Container\ContainerInterface;
|
|
use Symfony\Component\Console\Application as CliApp;
|
|
use Symfony\Component\Console\Application;
|
|
use Zend\I18n\Translator\Translator;
|
|
|
|
/** @var ContainerInterface $container */
|
|
$container = include __DIR__ . '/../config/container.php';
|
|
|
|
/** @var Translator $translator */
|
|
$translator = $container->get('translator');
|
|
$translator->setLocale(env('CLI_LOCALE', 'en'));
|
|
|
|
/** @var Application $app */
|
|
$app = $container->get(CliApp::class);
|
|
$app->run();
|