Created cli-specific services config file

This commit is contained in:
Alejandro Celaya
2016-07-19 17:17:37 +02:00
parent 170c96b8ef
commit 7efb3b3a86
3 changed files with 22 additions and 11 deletions

View File

@@ -0,0 +1,20 @@
<?php
use Acelaya\UrlShortener\Middleware;
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
use Shlinkio\Shlink\CLI;
use Symfony\Component\Console;
return [
'services' => [
'factories' => [
Console\Application::class => CLI\Factory\ApplicationFactory::class,
CLI\Command\GenerateShortcodeCommand::class => AnnotatedFactory::class,
CLI\Command\ResolveUrlCommand::class => AnnotatedFactory::class,
CLI\Command\ListShortcodesCommand::class => AnnotatedFactory::class,
CLI\Command\GetVisitsCommand::class => AnnotatedFactory::class,
],
],
];