[Routing] fix missing hostname serialization in Route
This commit is contained in:
parent
7bfe13c912
commit
c865220267
@ -25,6 +25,11 @@ class Route implements \Serializable
|
||||
*/
|
||||
private $pattern;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $hostnamePattern;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
@ -45,11 +50,6 @@ class Route implements \Serializable
|
||||
*/
|
||||
private $compiled;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $hostnamePattern;
|
||||
|
||||
private static $compilers = array();
|
||||
|
||||
/**
|
||||
@ -85,6 +85,7 @@ class Route implements \Serializable
|
||||
{
|
||||
return serialize(array(
|
||||
'pattern' => $this->pattern,
|
||||
'hostnamePattern' => $this->hostnamePattern,
|
||||
'defaults' => $this->defaults,
|
||||
'requirements' => $this->requirements,
|
||||
'options' => $this->options,
|
||||
@ -95,6 +96,7 @@ class Route implements \Serializable
|
||||
{
|
||||
$data = unserialize($data);
|
||||
$this->pattern = $data['pattern'];
|
||||
$this->hostnamePattern = $data['hostnamePattern'];
|
||||
$this->defaults = $data['defaults'];
|
||||
$this->requirements = $data['requirements'];
|
||||
$this->options = $data['options'];
|
||||
|
Reference in New Issue
Block a user