Spec-Zone.ru › Symfony 3.2

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.

Methods

__construct(RouteCollection $routes)

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

from MatcherDumper
RouteCollection getRoutes()

Получает маршруты для вывода.

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

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

Details

__construct(RouteCollection $routes)

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

Parameters

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

RouteCollection getRoutes()

Получает маршруты для вывода.

Return Value

RouteCollection Экземпляр RouteCollection

string dump(array $options = array())

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

Доступные опции:

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

Parameters

array $options Массив опций

Return Value

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

Exceptions

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

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

Spec-Zone.ru

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