class PathProcessorFiles implements InboundPathProcessorInterface (View source)

Defines a path processor to rewrite file URLs.

As the route system does not allow arbitrary amount of parameters convert the file path to a query parameter on the request.

Methods

string
processInbound(string $path, Request $request)

Processes the inbound path.

Details

string processInbound(string $path, Request $request)

Processes the inbound path.

Implementations may make changes to the request object passed in but should avoid all other side effects. This method can be called to process requests other than the current request.

Parameters

string $path

The path to process, with a leading slash.

Request $request

The HttpRequest object representing the request to process. Note, if this method is being called via the path_processor_manager service and is not part of routing, the current request object must be cloned before being passed in.

Return Value

string

The processed path.