Created new action to track visits, which returns an empty pixel

This commit is contained in:
Alejandro Celaya
2018-03-26 20:13:03 +02:00
parent 1b2a0820e5
commit 42fe4bd5ce
7 changed files with 140 additions and 67 deletions

View File

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Action;
use Psr\Http\Message\ResponseInterface;
use Shlinkio\Shlink\Common\Response\PixelResponse;
class PixelAction extends AbstractTrackingAction
{
protected function createResp(string $longUrl): ResponseInterface
{
return new PixelResponse();
}
}