Don't serialize the compiled route object along with the route.

8.0.x
Larry Garfield 2012-07-04 16:33:48 -05:00 committed by effulgentsia
parent 5701e622f6
commit 8ae0b323f2
1 changed files with 6 additions and 1 deletions

View File

@ -99,7 +99,12 @@ class MatcherDumper implements MatcherDumperInterface {
'pattern' => $compiled->getPattern(),
'pattern_outline' => $compiled->getPatternOutline(),
'number_parts' => $compiled->getNumParts(),
'route' => serialize($route),
// This is only temporary. We need to strip off the compiled route from
// route object in order to serialize it. Cloning strips off the
// compiled route object. Remove this once
// https://github.com/symfony/symfony/pull/4755 is merged and brought
// back downstream.
'route' => serialize(clone($route)),
);
$insert->values($values);
}