Check if URL is in use in Symfony – PHP
I need to check if entered value, e.g "specialist", is not in use as an URL in Symfony 6 application. Simple ANY-method paths are simple: /** @var RouterInterface $router */ $router->match('/specialist'); // returns array Non-matching methods are also simple: /**…