3 namespace Drupal\Core\PathProcessor;
5 use Symfony\Component\HttpFoundation\Request;
8 * Processes the inbound path by urldecoding it.
10 * Parameters in the URL sometimes represent code-meaningful strings. It is
11 * therefore useful to always urldecode() those values so that individual
12 * controllers need not concern themselves with it. This is Drupal-specific
13 * logic and may not be familiar for developers used to other Symfony-family
16 * @todo Revisit whether or not this logic is appropriate for here or if
17 * controllers should be required to implement this logic themselves. If we
18 * decide to keep this code, remove this TODO.
20 class PathProcessorDecode implements InboundPathProcessorInterface {
25 public function processInbound($path, Request $request) {
26 return urldecode($path);