3 namespace Drupal\Core\PathProcessor;
5 use Symfony\Component\HttpFoundation\Request;
8 * Defines an interface for classes that process the inbound path.
10 interface InboundPathProcessorInterface {
13 * Processes the inbound path.
15 * Implementations may make changes to the request object passed in but should
16 * avoid all other side effects. This method can be called to process requests
17 * other than the current request.
20 * The path to process, with a leading slash.
21 * @param \Symfony\Component\HttpFoundation\Request $request
22 * The HttpRequest object representing the request to process. Note, if this
23 * method is being called via the path_processor_manager service and is not
24 * part of routing, the current request object must be cloned before being
30 public function processInbound($path, Request $request);