shlink/bin/cli
2016-07-05 23:16:23 +02:00

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();