You are here

public function CompiledRoute::unserialize in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/routing/CompiledRoute.php \Symfony\Component\Routing\CompiledRoute::unserialize()
  2. 8 core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::unserialize()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/CompiledRoute.php \Symfony\Component\Routing\CompiledRoute::unserialize()
1 call to CompiledRoute::unserialize()
CompiledRoute::unserialize in core/lib/Drupal/Core/Routing/CompiledRoute.php
1 method overrides CompiledRoute::unserialize()
CompiledRoute::unserialize in core/lib/Drupal/Core/Routing/CompiledRoute.php

File

vendor/symfony/routing/CompiledRoute.php, line 74

Class

CompiledRoute
CompiledRoutes are returned by the RouteCompiler class.

Namespace

Symfony\Component\Routing

Code

public function unserialize($serialized) {
  $data = unserialize($serialized);
  $this->variables = $data['vars'];
  $this->staticPrefix = $data['path_prefix'];
  $this->regex = $data['path_regex'];
  $this->tokens = $data['path_tokens'];
  $this->pathVariables = $data['path_vars'];
  $this->hostRegex = $data['host_regex'];
  $this->hostTokens = $data['host_tokens'];
  $this->hostVariables = $data['host_vars'];
}