Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Routing\Matcher; Chris@0: Chris@0: use Symfony\Component\HttpFoundation\Request; Chris@17: use Symfony\Component\Routing\Exception\MethodNotAllowedException; Chris@14: use Symfony\Component\Routing\Exception\NoConfigurationException; Chris@0: use Symfony\Component\Routing\Exception\ResourceNotFoundException; Chris@0: Chris@0: /** Chris@0: * RequestMatcherInterface is the interface that all request matcher classes must implement. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: */ Chris@0: interface RequestMatcherInterface Chris@0: { Chris@0: /** Chris@0: * Tries to match a request with a set of routes. Chris@0: * Chris@0: * If the matcher can not find information, it must throw one of the exceptions documented Chris@0: * below. Chris@0: * Chris@0: * @return array An array of parameters Chris@0: * Chris@14: * @throws NoConfigurationException If no routing configuration could be found Chris@0: * @throws ResourceNotFoundException If no matching resource could be found Chris@0: * @throws MethodNotAllowedException If a matching resource was found but the request method is not allowed Chris@0: */ Chris@0: public function matchRequest(Request $request); Chris@0: }