8000 merged branch Tobion/hostname-serialize (PR #6008) · lanthaler/symfony@777aa50 · GitHub
[go: up one dir, main page]

Skip to content

Commit 777aa50

Browse files
committed
merged branch Tobion/hostname-serialize (PR symfony#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
2 parents 7bfe13c + c865220 commit 777aa50

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Symfony/Component/Routing/Route.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ class Route implements \Serializable
2525
*/
2626
private $pattern;
2727

28+
/**
29+
* @var string
30+
*/
31+
private $hostnamePattern;
32+
2833
/**
2934
* @var array
3035
*/
@@ -45,11 +50,6 @@ class Route implements \Serializable
4550
*/
4651
private $compiled;
4752

48-
/**
49-
* @var string
50-
*/
51-
private $hostnamePattern;
52-
5353
private static $compilers = array();
5454

5555
/**
@@ -85,6 +85,7 @@ public function serialize()
8585
{
8686
return serialize(array(
8787
'pattern' => $this->pattern,
88+
'hostnamePattern' => $this->hostnamePattern,
8889
'defaults' => $this->defaults,
8990
'requirements' => $this->requirements,
9091
'options' => $this->options,
@@ -95,6 +96,7 @@ public function unserialize($data)
9596
{
9697
$data = unserialize($data);
9798
$this->pattern = $data['pattern'];
99+
$this->hostnamePattern = $data['hostnamePattern'];
98100
$this->defaults = $data['defaults'];
99101
$this->requirements = $data['requirements'];
100102
$this->options = $data['options'];

0 commit comments

Comments
 (0)
0