From 4340b297fba0369779a62a82c0bee651528f8e94 Mon Sep 17 00:00:00 2001 From: Lukas Kahwe Smith Date: Wed, 10 Jun 2015 10:52:08 +0200 Subject: [PATCH] handle deprecation of ConfigCache::__toString() --- Response/AllowedMethodsLoader/AllowedMethodsRouterLoader.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Response/AllowedMethodsLoader/AllowedMethodsRouterLoader.php b/Response/AllowedMethodsLoader/AllowedMethodsRouterLoader.php index 4760df7a3..e181456dc 100644 --- a/Response/AllowedMethodsLoader/AllowedMethodsRouterLoader.php +++ b/Response/AllowedMethodsLoader/AllowedMethodsRouterLoader.php @@ -48,7 +48,9 @@ public function getAllowedMethods() $this->warmUp(null); } - return require $this->cache; + $path = method_exists($this->cache, 'getPath') ? $this->cache->getPath() : $this->cache; + + return require $path; } /**