Skip to content

Commit

Permalink
handle deprecation of ConfigCache::__toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Jun 10, 2015
1 parent 0925e01 commit 4340b29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Response/AllowedMethodsLoader/AllowedMethodsRouterLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 4340b29

Please sign in to comment.