You are here

public function Route::unserialize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::unserialize()

File

vendor/symfony/routing/Route.php, line 122

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function unserialize($serialized) {
  $data = unserialize($serialized);
  $this->path = $data['path'];
  $this->host = $data['host'];
  $this->defaults = $data['defaults'];
  $this->requirements = $data['requirements'];
  $this->options = $data['options'];
  $this->schemes = $data['schemes'];
  $this->methods = $data['methods'];
  if (isset($data['condition'])) {
    $this->condition = $data['condition'];
  }
  if (isset($data['compiled'])) {
    $this->compiled = $data['compiled'];
  }
}