shlink/bin/cli

17 lines
501 B
Text
Raw Normal View History

2016-04-16 12:57:11 +02:00
#!/usr/bin/env php
<?php
use Acelaya\UrlShortener\CliCommands\GenerateShortcodeCommand;
use Acelaya\UrlShortener\CliCommands\ResolveUrlCommand;
2016-04-17 20:27:24 +02:00
use Interop\Container\ContainerInterface;
use Symfony\Component\Console\Application as CliApp;
2016-04-16 12:57:11 +02:00
2016-04-17 20:27:24 +02:00
/** @var ContainerInterface $container */
$container = include __DIR__ . '/../config/container.php';
2016-04-16 12:57:11 +02:00
$app = new CliApp();
$app->addCommands([
$container->get(GenerateShortcodeCommand::class),
$container->get(ResolveUrlCommand::class),
]);
$app->run();