2018-03-26 21:13:03 +03:00
|
|
|
<?php
|
2019-10-05 18:26:10 +03:00
|
|
|
|
2018-03-26 21:13:03 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink\Core\Action;
|
|
|
|
|
|
|
|
use Psr\Http\Message\ResponseInterface;
|
2018-11-03 14:10:02 +03:00
|
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
|
|
use Psr\Http\Server\RequestHandlerInterface;
|
2018-03-26 21:13:03 +03:00
|
|
|
use Shlinkio\Shlink\Common\Response\PixelResponse;
|
|
|
|
|
|
|
|
class PixelAction extends AbstractTrackingAction
|
|
|
|
{
|
2018-11-03 14:10:02 +03:00
|
|
|
protected function createSuccessResp(string $longUrl): ResponseInterface
|
2018-03-26 21:13:03 +03:00
|
|
|
{
|
|
|
|
return new PixelResponse();
|
|
|
|
}
|
2018-11-03 14:10:02 +03:00
|
|
|
|
|
|
|
protected function createErrorResp(
|
|
|
|
ServerRequestInterface $request,
|
|
|
|
RequestHandlerInterface $handler
|
|
|
|
): ResponseInterface {
|
|
|
|
return new PixelResponse();
|
|
|
|
}
|
2018-03-26 21:13:03 +03:00
|
|
|
}
|