Updated namespace for Visit CLI commands

This commit is contained in:
Alejandro Celaya
2016-08-08 09:38:50 +02:00
parent a65003803b
commit ecd2e6e759
4 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ return [
Command\Shortcode\ResolveUrlCommand::class, Command\Shortcode\ResolveUrlCommand::class,
Command\Shortcode\ListShortcodesCommand::class, Command\Shortcode\ListShortcodesCommand::class,
Command\Shortcode\GetVisitsCommand::class, Command\Shortcode\GetVisitsCommand::class,
Command\ProcessVisitsCommand::class, Command\Visit\ProcessVisitsCommand::class,
Command\Config\GenerateCharsetCommand::class, Command\Config\GenerateCharsetCommand::class,
Command\Config\GenerateSecretCommand::class, Command\Config\GenerateSecretCommand::class,
Command\Api\GenerateKeyCommand::class, Command\Api\GenerateKeyCommand::class,

View File

@@ -14,7 +14,7 @@ return [
Command\Shortcode\ResolveUrlCommand::class => AnnotatedFactory::class, Command\Shortcode\ResolveUrlCommand::class => AnnotatedFactory::class,
Command\Shortcode\ListShortcodesCommand::class => AnnotatedFactory::class, Command\Shortcode\ListShortcodesCommand::class => AnnotatedFactory::class,
Command\Shortcode\GetVisitsCommand::class => AnnotatedFactory::class, Command\Shortcode\GetVisitsCommand::class => AnnotatedFactory::class,
Command\ProcessVisitsCommand::class => AnnotatedFactory::class, Command\Visit\ProcessVisitsCommand::class => AnnotatedFactory::class,
Command\Config\GenerateCharsetCommand::class => AnnotatedFactory::class, Command\Config\GenerateCharsetCommand::class => AnnotatedFactory::class,
Command\Config\GenerateSecretCommand::class => AnnotatedFactory::class, Command\Config\GenerateSecretCommand::class => AnnotatedFactory::class,
Command\Api\GenerateKeyCommand::class => AnnotatedFactory::class, Command\Api\GenerateKeyCommand::class => AnnotatedFactory::class,

View File

@@ -1,5 +1,5 @@
<?php <?php
namespace Shlinkio\Shlink\CLI\Command; namespace Shlinkio\Shlink\CLI\Command\Visit;
use Acelaya\ZsmAnnotatedServices\Annotation\Inject; use Acelaya\ZsmAnnotatedServices\Annotation\Inject;
use Shlinkio\Shlink\Common\Exception\WrongIpException; use Shlinkio\Shlink\Common\Exception\WrongIpException;
@@ -32,8 +32,8 @@ class ProcessVisitsCommand extends Command
/** /**
* ProcessVisitsCommand constructor. * ProcessVisitsCommand constructor.
* @param VisitServiceInterface|VisitService $visitService * @param VisitServiceInterface $visitService
* @param IpLocationResolverInterface|IpLocationResolver $ipLocationResolver * @param IpLocationResolverInterface $ipLocationResolver
* @param TranslatorInterface $translator * @param TranslatorInterface $translator
* *
* @Inject({VisitService::class, IpLocationResolver::class, "translator"}) * @Inject({VisitService::class, IpLocationResolver::class, "translator"})

View File

@@ -4,7 +4,7 @@ namespace ShlinkioTest\Shlink\CLI\Command;
use PHPUnit_Framework_TestCase as TestCase; use PHPUnit_Framework_TestCase as TestCase;
use Prophecy\Argument; use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy; use Prophecy\Prophecy\ObjectProphecy;
use Shlinkio\Shlink\CLI\Command\ProcessVisitsCommand; use Shlinkio\Shlink\CLI\Command\Visit\ProcessVisitsCommand;
use Shlinkio\Shlink\Common\Service\IpLocationResolver; use Shlinkio\Shlink\Common\Service\IpLocationResolver;
use Shlinkio\Shlink\Core\Entity\Visit; use Shlinkio\Shlink\Core\Entity\Visit;
use Shlinkio\Shlink\Core\Service\VisitService; use Shlinkio\Shlink\Core\Service\VisitService;