Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/routing/CompiledRoute.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
26 private $hostVariables; | 26 private $hostVariables; |
27 private $hostRegex; | 27 private $hostRegex; |
28 private $hostTokens; | 28 private $hostTokens; |
29 | 29 |
30 /** | 30 /** |
31 * Constructor. | |
32 * | |
33 * @param string $staticPrefix The static prefix of the compiled route | 31 * @param string $staticPrefix The static prefix of the compiled route |
34 * @param string $regex The regular expression to use to match this route | 32 * @param string $regex The regular expression to use to match this route |
35 * @param array $tokens An array of tokens to use to generate URL for this route | 33 * @param array $tokens An array of tokens to use to generate URL for this route |
36 * @param array $pathVariables An array of path variables | 34 * @param array $pathVariables An array of path variables |
37 * @param string|null $hostRegex Host regex | 35 * @param string|null $hostRegex Host regex |
71 /** | 69 /** |
72 * {@inheritdoc} | 70 * {@inheritdoc} |
73 */ | 71 */ |
74 public function unserialize($serialized) | 72 public function unserialize($serialized) |
75 { | 73 { |
76 $data = unserialize($serialized); | 74 if (\PHP_VERSION_ID >= 70000) { |
75 $data = unserialize($serialized, array('allowed_classes' => false)); | |
76 } else { | |
77 $data = unserialize($serialized); | |
78 } | |
79 | |
77 $this->variables = $data['vars']; | 80 $this->variables = $data['vars']; |
78 $this->staticPrefix = $data['path_prefix']; | 81 $this->staticPrefix = $data['path_prefix']; |
79 $this->regex = $data['path_regex']; | 82 $this->regex = $data['path_regex']; |
80 $this->tokens = $data['path_tokens']; | 83 $this->tokens = $data['path_tokens']; |
81 $this->pathVariables = $data['path_vars']; | 84 $this->pathVariables = $data['path_vars']; |