merged branch Tobion/hostname-serialize (PR #6008)
This PR was merged into the master branch.
Commits
-------
c865220
[Routing] fix missing hostname serialization in Route
Discussion
----------
[Routing] fix missing hostname serialization in Route
This commit is contained in:
commit
777aa5085d
@ -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