mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Updated tag actions namespace
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user