mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-17 00:22:10 +03:00
25 lines
625 B
PHP
25 lines
625 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Action;
|
|
|
|
use Psr\Http\Message\ResponseInterface;
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
use Psr\Http\Server\RequestHandlerInterface;
|
|
use Shlinkio\Shlink\Common\Response\PixelResponse;
|
|
|
|
class PixelAction extends AbstractTrackingAction
|
|
{
|
|
protected function createSuccessResp(string $longUrl): ResponseInterface
|
|
{
|
|
return new PixelResponse();
|
|
}
|
|
|
|
protected function createErrorResp(
|
|
ServerRequestInterface $request,
|
|
RequestHandlerInterface $handler
|
|
): ResponseInterface {
|
|
return new PixelResponse();
|
|
}
|
|
}
|