[Routing] added missing Route::setOption() method
This commit is contained in:
parent
faab5e4452
commit
48858cb95b
@ -99,12 +99,29 @@ class Route
|
|||||||
public function setOptions(array $options)
|
public function setOptions(array $options)
|
||||||
{
|
{
|
||||||
$this->options = array_merge(array(
|
$this->options = array_merge(array(
|
||||||
'compiler_class' => 'Symfony\\Component\\Routing\\RouteCompiler',
|
'compiler_class' => 'Symfony\\Component\\Routing\\RouteCompiler',
|
||||||
), $options);
|
), $options);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets an option value.
|
||||||
|
*
|
||||||
|
* This method implements a fluent interface.
|
||||||
|
*
|
||||||
|
* @param string $name An option name
|
||||||
|
* @param mixed $value The option value
|
||||||
|
*
|
||||||
|
* @return Route The current Route instance
|
||||||
|
*/
|
||||||
|
public function setOption($name, $value)
|
||||||
|
{
|
||||||
|
$this->options[$name] = $value;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get an option value.
|
* Get an option value.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user