You are here

public function Route::addOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::addOptions()

Adds options.

This method implements a fluent interface.

Parameters

array $options The options:

Return value

Route The current Route instance

1 call to Route::addOptions()
Route::setOptions in vendor/symfony/routing/Route.php
Sets the options.

File

vendor/symfony/routing/Route.php, line 352

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function addOptions(array $options) {
  foreach ($options as $name => $option) {
    $this->options[$name] = $option;
  }
  $this->compiled = null;
  return $this;
}