From 6717102dd2b4c60ec1f9be326be13ec4e547d328 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 15 Jul 2017 08:31:21 +0200 Subject: [PATCH] Updated tag actions namespace --- docs/swagger/swagger.json | 1 - module/Core/src/Util/TagManagerTrait.php | 2 +- module/Rest/config/dependencies.config.php | 2 +- module/Rest/src/Action/{ => Tag}/ListTagsAction.php | 3 ++- module/Rest/test/Action/{ => Tag}/ListTagsActionTest.php | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) rename module/Rest/src/Action/{ => Tag}/ListTagsAction.php (93%) rename module/Rest/test/Action/{ => Tag}/ListTagsActionTest.php (92%) diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index b60ab79c..c7df5490 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -37,7 +37,6 @@ "$ref": "paths/v1_tags.json" }, - "/v1/short-codes/{shortCode}/visits": { "$ref": "paths/v1_short-codes_{shortCode}_visits.json" } diff --git a/module/Core/src/Util/TagManagerTrait.php b/module/Core/src/Util/TagManagerTrait.php index 9ca02b92..e20e1919 100644 --- a/module/Core/src/Util/TagManagerTrait.php +++ b/module/Core/src/Util/TagManagerTrait.php @@ -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 * @return string diff --git a/module/Rest/config/dependencies.config.php b/module/Rest/config/dependencies.config.php index d48d319b..9428075e 100644 --- a/module/Rest/config/dependencies.config.php +++ b/module/Rest/config/dependencies.config.php @@ -19,7 +19,7 @@ return [ Action\GetVisitsAction::class => AnnotatedFactory::class, Action\ListShortcodesAction::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\CrossDomainMiddleware::class => InvokableFactory::class, diff --git a/module/Rest/src/Action/ListTagsAction.php b/module/Rest/src/Action/Tag/ListTagsAction.php similarity index 93% rename from module/Rest/src/Action/ListTagsAction.php rename to module/Rest/src/Action/Tag/ListTagsAction.php index afee7df5..acfa0846 100644 --- a/module/Rest/src/Action/ListTagsAction.php +++ b/module/Rest/src/Action/Tag/ListTagsAction.php @@ -1,5 +1,5 @@