mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 07:43:12 +08:00
Wrapped logic to track requests to a new RequestTracker service
This commit is contained in:
15
module/Core/src/Visit/RequestTrackerInterface.php
Normal file
15
module/Core/src/Visit/RequestTrackerInterface.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Shlinkio\Shlink\Core\Visit;
|
||||
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Shlinkio\Shlink\Core\Entity\ShortUrl;
|
||||
|
||||
interface RequestTrackerInterface
|
||||
{
|
||||
public function trackIfApplicable(ShortUrl $shortUrl, ServerRequestInterface $request): void;
|
||||
|
||||
public function trackNotFoundIfApplicable(ServerRequestInterface $request): void;
|
||||
}
|
||||
Reference in New Issue
Block a user