mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 07:33:58 -06:00
18 lines
514 B
PHP
Executable File
18 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();
|