setOptions() public method

Available options: * cache_dir: The cache directory (or null to disable caching) * debug: Whether to enable debugging or not (false by default) * resource_type: Type hint for the main resource (optional)
public setOptions ( array $options )
$options array An array of options
Example #1
0
 /**
  * Constructor.
  *
  * @param RequestContext       $requestContext The context
  * @param RouteCollection|null $collection
  * @param array                $options
  * @param LoggerInterface      $logger         A logger instance
  */
 public function __construct(RequestContext $requestContext, RouteCollection $collection = null, array $options = array(), LoggerInterface $logger = null)
 {
     parent::setOptions($options);
     $this->context = $requestContext;
     $this->collection = $collection;
     $this->logger = $logger;
 }