[Routing] fix BC

This commit is contained in:
Nicolas Grekas 2014-11-03 15:26:52 +01:00
parent 318ad052d2
commit 86e667bf81

View File

@ -61,6 +61,9 @@ class Route implements \Serializable
*/
private $compiled;
/**
* @var string
*/
private $condition;
/**
@ -130,8 +133,10 @@ class Route implements \Serializable
$this->options = $data['options'];
$this->schemes = $data['schemes'];
$this->methods = $data['methods'];
$this->condition = $data['condition'];
if (isset($data['condition'])) {
$this->condition = $data['condition'];
}
if (isset($data['compiled'])) {
$this->compiled = $data['compiled'];
}