4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Routing\Matcher;
15 * RedirectableUrlMatcherInterface knows how to redirect the user.
17 * @author Fabien Potencier <fabien@symfony.com>
19 interface RedirectableUrlMatcherInterface
22 * Redirects the user to another URL.
24 * @param string $path The path info to redirect to
25 * @param string $route The route name that matched
26 * @param string|null $scheme The URL scheme (null to keep the current one)
28 * @return array An array of parameters
30 public function redirect($path, $route, $scheme = null);