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.
1 parent 7004122 commit 5d4bfdfCopy full SHA for 5d4bfdf
Controller/Controller.php
@@ -90,7 +90,7 @@ public function indexAction(Request $request, $_format)
90
$serializedRoutes = $this->serializer->serialize($exposedRoutes, 'json');
91
$cache->write($serializedRoutes, $this->exposedRoutesExtractor->getResources());
92
} else {
93
- $serializedRoutes = file_get_contents((string) $cache);
+ $serializedRoutes = file_get_contents(method_exists($cache, 'getPath') ? $cache->getPath() : (string) $cache);
94
$exposedRoutes = json_decode($serializedRoutes, true);
95
}
96
0 commit comments