mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-24 05:38:06 +03:00
16 lines
501 B
PHP
Executable file
16 lines
501 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
use Acelaya\UrlShortener\CliCommands\GenerateShortcodeCommand;
|
|
use Acelaya\UrlShortener\CliCommands\ResolveUrlCommand;
|
|
use Interop\Container\ContainerInterface;
|
|
use Symfony\Component\Console\Application as CliApp;
|
|
|
|
/** @var ContainerInterface $container */
|
|
$container = include __DIR__ . '/../config/container.php';
|
|
|
|
$app = new CliApp();
|
|
$app->addCommands([
|
|
$container->get(GenerateShortcodeCommand::class),
|
|
$container->get(ResolveUrlCommand::class),
|
|
]);
|
|
$app->run();
|