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>
21 interface RedirectableUrlMatcherInterface
24 * Redirects the user to another URL.
26 * @param string $path The path info to redirect to.
27 * @param string $route The route name that matched
28 * @param string|null $scheme The URL scheme (null to keep the current one)
30 * @return array An array of parameters
34 public function redirect($path, $route, $scheme = null);