<?php
namespace Symfony\Component\Routing\Matcher;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Exception\ExceptionInterface;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
class TraceableUrlMatcher extends UrlMatcher
{
public const ROUTE_DOES_NOT_MATCH = 0;
public const ROUTE_ALMOST_MATCHES = 1;
public const ROUTE_MATCHES = 2;
protected array $traces;
public function getTraces(string $pathinfo): array
{
$this->traces = [];
try {
$this->match($pathinfo);
} catch (ExceptionInterface) {
}
return $this->traces;
}
public function getTracesForRequest(Request $request): array
{