Documentation

RequestMatcherInterface

RequestMatcherInterface is the interface that all request matcher classes must implement.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

matchRequest()  : array<string|int, mixed>
Tries to match a request with a set of routes.

Methods

matchRequest()

Tries to match a request with a set of routes.

public matchRequest(Request $request) : array<string|int, mixed>

If the matcher cannot find information, it must throw one of the exceptions documented below.

Parameters
$request : Request
Tags
throws
NoConfigurationException

If no routing configuration could be found

throws
ResourceNotFoundException

If no matching resource could be found

throws
MethodNotAllowedException

If a matching resource was found but the request method is not allowed

Return values
array<string|int, mixed>

Search results