Spec-Zone.ru › Symfony 3.0

ApacheMatcherDumper deprecated

class ApacheMatcherDumper extends MatcherDumper

deprecated

since version 2.5, to be removed in 3.0. The performance gains are minimal and it's very hard to replicate the behavior of PHP implementation.

Выводит набор правил Apache mod_rewrite.

Методы

__construct(RouteCollection $routes)

Конструктор.

from MatcherDumper
RouteCollection getRoutes()

Возвращает маршруты для вывода.

from MatcherDumper
string dump(array $options = array())

Выводит набор правил Apache mod_rewrite.

Подробности

__construct(RouteCollection $routes)

Конструктор.

Параметры

RouteCollection $routes RouteCollection для вывода

RouteCollection getRoutes()

Возвращает маршруты для вывода.

Возвращаемое значение

RouteCollection Экземпляр RouteCollection

string dump(array $options = array())

Выводит набор правил Apache mod_rewrite.

Доступные параметры:

  • script_name: Имя скрипта (app.php по умолчанию)
  • base_uri: Базовый URI ("" по умолчанию)

Параметры

array $options Массив параметров

Возвращаемое значение

string Выполняемый код

Исключения

LogicException Если регулярное выражение маршрута некорректно

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API