18 lines
397 B
PHP
18 lines
397 B
PHP
<?php
|
|
|
|
namespace App\Platform\Tools;
|
|
|
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
use Symfony\Component\HttpFoundation\RequestMatcherInterface;
|
|
use GuzzleHttp\Psr7\Uri;
|
|
|
|
class ToolsRequestMatcher implements RequestMatcherInterface
|
|
{
|
|
public function matches(Request $request): bool
|
|
{
|
|
$limit = (new Uri(HttpClient::getHost()))->getHost();
|
|
return $limit === $request->getHost();
|
|
}
|
|
}
|