Updated tag actions namespace

This commit is contained in:
Alejandro Celaya
2017-07-15 08:31:21 +02:00
parent 1ba7fc81ac
commit 6717102dd2
5 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,6 @@
"$ref": "paths/v1_tags.json" "$ref": "paths/v1_tags.json"
}, },
"/v1/short-codes/{shortCode}/visits": { "/v1/short-codes/{shortCode}/visits": {
"$ref": "paths/v1_short-codes_{shortCode}_visits.json" "$ref": "paths/v1_short-codes_{shortCode}_visits.json"
} }

View File

@@ -26,7 +26,7 @@ trait TagManagerTrait
} }
/** /**
* Tag names are trimmed, lowercased and spaces are replaced by dashes * Tag names are trimmed, lower cased and spaces are replaced by dashes
* *
* @param string $tagName * @param string $tagName
* @return string * @return string

View File

@@ -19,7 +19,7 @@ return [
Action\GetVisitsAction::class => AnnotatedFactory::class, Action\GetVisitsAction::class => AnnotatedFactory::class,
Action\ListShortcodesAction::class => AnnotatedFactory::class, Action\ListShortcodesAction::class => AnnotatedFactory::class,
Action\EditShortcodeTagsAction::class => AnnotatedFactory::class, Action\EditShortcodeTagsAction::class => AnnotatedFactory::class,
Action\ListTagsAction::class => AnnotatedFactory::class, Action\Tag\ListTagsAction::class => AnnotatedFactory::class,
Middleware\BodyParserMiddleware::class => AnnotatedFactory::class, Middleware\BodyParserMiddleware::class => AnnotatedFactory::class,
Middleware\CrossDomainMiddleware::class => InvokableFactory::class, Middleware\CrossDomainMiddleware::class => InvokableFactory::class,

View File

@@ -1,5 +1,5 @@
<?php <?php
namespace Shlinkio\Shlink\Rest\Action; namespace Shlinkio\Shlink\Rest\Action\Tag;
use Acelaya\ZsmAnnotatedServices\Annotation as DI; use Acelaya\ZsmAnnotatedServices\Annotation as DI;
use Interop\Http\ServerMiddleware\DelegateInterface; use Interop\Http\ServerMiddleware\DelegateInterface;
@@ -8,6 +8,7 @@ use Psr\Http\Message\ServerRequestInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use Shlinkio\Shlink\Core\Service\Tag\TagService; use Shlinkio\Shlink\Core\Service\Tag\TagService;
use Shlinkio\Shlink\Core\Service\Tag\TagServiceInterface; use Shlinkio\Shlink\Core\Service\Tag\TagServiceInterface;
use Shlinkio\Shlink\Rest\Action\AbstractRestAction;
use Zend\Diactoros\Response\JsonResponse; use Zend\Diactoros\Response\JsonResponse;
class ListTagsAction extends AbstractRestAction class ListTagsAction extends AbstractRestAction

View File

@@ -1,5 +1,5 @@
<?php <?php
namespace ShlinkioTest\Shlink\Rest\Action; namespace ShlinkioTest\Shlink\Rest\Action\Tag;
use Interop\Http\ServerMiddleware\DelegateInterface; use Interop\Http\ServerMiddleware\DelegateInterface;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
@@ -7,7 +7,7 @@ use Prophecy\Prophecy\MethodProphecy;
use Prophecy\Prophecy\ObjectProphecy; use Prophecy\Prophecy\ObjectProphecy;
use Shlinkio\Shlink\Core\Entity\Tag; use Shlinkio\Shlink\Core\Entity\Tag;
use Shlinkio\Shlink\Core\Service\Tag\TagServiceInterface; use Shlinkio\Shlink\Core\Service\Tag\TagServiceInterface;
use Shlinkio\Shlink\Rest\Action\ListTagsAction; use Shlinkio\Shlink\Rest\Action\Tag\ListTagsAction;
use Zend\Diactoros\ServerRequestFactory; use Zend\Diactoros\ServerRequestFactory;
class ListTagsActionTest extends TestCase class ListTagsActionTest extends TestCase