You are here

public function RedirectableUrlMatcher::redirect in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/Fixtures/RedirectableUrlMatcher.php \Symfony\Component\Routing\Tests\Fixtures\RedirectableUrlMatcher::redirect()

Redirects the user to another URL.

Parameters

string $path The path info to redirect to.:

string $route The route name that matched:

string|null $scheme The URL scheme (null to keep the current one):

Return value

array An array of parameters

Overrides RedirectableUrlMatcherInterface::redirect

1 call to RedirectableUrlMatcher::redirect()
ProjectUrlMatcher::match in vendor/symfony/routing/Tests/Fixtures/dumper/url_matcher2.php
Tries to match a URL path with a set of routes.

File

vendor/symfony/routing/Tests/Fixtures/RedirectableUrlMatcher.php, line 22

Class

RedirectableUrlMatcher
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\Routing\Tests\Fixtures

Code

public function redirect($path, $route, $scheme = null) {
  return array(
    '_controller' => 'Some controller reference...',
    'path' => $path,
    'scheme' => $scheme,
  );
}