Renamed GetVisitsAction to ShortUrlVisitsAction

This commit is contained in:
Alejandro Celaya 2020-05-01 11:17:07 +02:00
parent 4498386f56
commit 5beaab85ac
4 changed files with 8 additions and 8 deletions

View file

@ -28,7 +28,7 @@ return [
Action\ShortUrl\ResolveShortUrlAction::class => ConfigAbstractFactory::class,
Action\ShortUrl\ListShortUrlsAction::class => ConfigAbstractFactory::class,
Action\ShortUrl\EditShortUrlTagsAction::class => ConfigAbstractFactory::class,
Action\Visit\GetVisitsAction::class => ConfigAbstractFactory::class,
Action\Visit\ShortUrlVisitsAction::class => ConfigAbstractFactory::class,
Action\Tag\ListTagsAction::class => ConfigAbstractFactory::class,
Action\Tag\DeleteTagsAction::class => ConfigAbstractFactory::class,
Action\Tag\CreateTagsAction::class => ConfigAbstractFactory::class,
@ -65,7 +65,7 @@ return [
Service\ShortUrl\ShortUrlResolver::class,
'config.url_shortener.domain',
],
Action\Visit\GetVisitsAction::class => [Service\VisitsTracker::class, 'Logger_Shlink'],
Action\Visit\ShortUrlVisitsAction::class => [Service\VisitsTracker::class, 'Logger_Shlink'],
Action\ShortUrl\ListShortUrlsAction::class => [
Service\ShortUrlService::class,
'config.url_shortener.domain',

View file

@ -26,7 +26,7 @@ return [
Action\ShortUrl\EditShortUrlTagsAction::getRouteDef([$dropDomainMiddleware]),
// Visits
Action\Visit\GetVisitsAction::getRouteDef([$dropDomainMiddleware]),
Action\Visit\ShortUrlVisitsAction::getRouteDef([$dropDomainMiddleware]),
// Tags
Action\Tag\ListTagsAction::getRouteDef(),

View file

@ -14,7 +14,7 @@ use Shlinkio\Shlink\Core\Model\VisitsParams;
use Shlinkio\Shlink\Core\Service\VisitsTrackerInterface;
use Shlinkio\Shlink\Rest\Action\AbstractRestAction;
class GetVisitsAction extends AbstractRestAction
class ShortUrlVisitsAction extends AbstractRestAction
{
use PaginatorUtilsTrait;

View file

@ -15,17 +15,17 @@ use Shlinkio\Shlink\Common\Util\DateRange;
use Shlinkio\Shlink\Core\Model\ShortUrlIdentifier;
use Shlinkio\Shlink\Core\Model\VisitsParams;
use Shlinkio\Shlink\Core\Service\VisitsTracker;
use Shlinkio\Shlink\Rest\Action\Visit\GetVisitsAction;
use Shlinkio\Shlink\Rest\Action\Visit\ShortUrlVisitsAction;
class GetVisitsActionTest extends TestCase
class ShortUrlVisitsActionTest extends TestCase
{
private GetVisitsAction $action;
private ShortUrlVisitsAction $action;
private ObjectProphecy $visitsTracker;
public function setUp(): void
{
$this->visitsTracker = $this->prophesize(VisitsTracker::class);
$this->action = new GetVisitsAction($this->visitsTracker->reveal());
$this->action = new ShortUrlVisitsAction($this->visitsTracker->reveal());
}
/** @test */