Created new CLI command to parse a shortcode

This commit is contained in:
Alejandro Celaya
2016-07-05 23:16:23 +02:00
parent 490b72539e
commit 9ce5e255f1
4 changed files with 84 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#!/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;
@@ -10,5 +11,6 @@ $container = include __DIR__ . '/../config/container.php';
$app = new CliApp();
$app->addCommands([
$container->get(GenerateShortcodeCommand::class),
$container->get(ResolveUrlCommand::class),
]);
$app->run();