Router::setOptions()

setOptions(array $options)

Sets options.

Available options:

  • cache_dir: The cache directory (or null to disable caching)
  • debug: Whether to enable debugging or not (false by default)
  • generator_class: The name of a UrlGeneratorInterface implementation
  • generatorbaseclass: The base class for the dumped generator class
  • generatorcacheclass: The class name for the dumped generator class
  • generatordumperclass: The name of a GeneratorDumperInterface implementation
  • matcher_class: The name of a UrlMatcherInterface implementation
  • matcherbaseclass: The base class for the dumped matcher class
  • matcherdumperclass: The class name for the dumped matcher class
  • matchercacheclass: The name of a MatcherDumperInterface implementation
  • resource_type: Type hint for the main resource (optional)
  • strict_requirements: Configure strict requirement checking for generators implementing ConfigurableRequirementsInterface (default is true)

Parameters

array $options An array of options

Exceptions

InvalidArgumentException When unsupported option is provided
doc_Symfony
2016-10-28 06:31:06
Comments
Leave a Comment

Please login to continue.