We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fbc7c38 + f6303f8 commit 0b10231Copy full SHA for 0b10231
Controller/Controller.php
@@ -82,7 +82,8 @@ public function indexAction(Request $request, $_format)
82
$serializedRoutes = $this->serializer->serialize($exposedRoutes, 'json');
83
$cache->write($serializedRoutes, $this->exposedRoutesExtractor->getResources());
84
} else {
85
- $serializedRoutes = file_get_contents((string) $cache);
+ $path = method_exists($cache, 'getPath') ? $cache->getPath() : (string) $cache;
86
+ $serializedRoutes = file_get_contents($path);
87
$exposedRoutes = $this->serializer->deserialize(
88
$serializedRoutes,
89
'Symfony\Component\Routing\RouteCollection',
0 commit comments