RedirectableUrlMatcherInterface

RedirectableUrlMatcherInterface

interface RedirectableUrlMatcherInterface

RedirectableUrlMatcherInterface knows how to redirect the user.

Methods

array redirect(string $path, string $route, string|null $scheme = null)

Redirects the user to another URL.

Details

array redirect(string $path, string $route, string|null $scheme = null)

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Routing/Matcher/RedirectableUrlMatcherInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部