8000 [Routing] fix missing hostname serialization in Route by Tobion · Pull Request #6008 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Routing] fix missing hostname serialization in Route #6008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
-->
Diff view
12 changes: 7 additions & 5 deletions src/Symfony/Component/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ class Route implements \Serializable
*/
private $pattern;

/**
* @var string
*/
private $hostnamePattern;

/**
* @var array
*/
Expand All @@ -45,11 +50,6 @@ class Route implements \Serializable
*/
private $compiled;

/**
* @var string
*/
private $hostnamePattern;

private static $compilers = array();

/**
Expand Down Expand Up @@ -85,6 +85,7 @@ public function serialize()
{
return serialize(array(
'pattern' => $this->pattern,
'hostnamePattern' => $this->hostnamePattern,
'defaults' => $this->defaults,
'requirements' => $this->requirements,
'options' => $this->options,
Expand All @@ -95,6 +96,7 @@ public function unserialize($data)
{
$data = unserialize($data);
$this->pattern = $data['pattern'];
$this->hostnamePattern = $data['hostnamePattern'];
$this->defaults = $data['defaults'];
$this->requirements = $data['requirements'];
$this->options = $data['options'];
Expand Down
0