Skip to content

Commit

Permalink
Merge pull request #1064 from FriendsOfSymfony/deprecation_fix
Browse files Browse the repository at this point in the history
handle deprecation of ConfigCache::__toString()
  • Loading branch information
lsmith77 committed Jun 10, 2015
2 parents 0925e01 + 4340b29 commit 2b2b43e
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 2b2b43e

Please sign in to comment.