Updated exceptions package

This commit is contained in:
Graham Campbell
2015-10-07 14:20:53 +01:00
parent af62c5683f
commit 9bef541057
5 changed files with 6 additions and 31 deletions

View File

@@ -67,10 +67,11 @@ class RedirectDisplayer implements DisplayerInterface
*
* @param \Exception $original
* @param \Exception $transformed
* @param int $code
*
* @return bool
*/
public function canDisplay(Exception $original, Exception $transformed)
public function canDisplay(Exception $original, Exception $transformed, $code)
{
$redirect = $transformed instanceof HttpExceptionInterface && $transformed->getStatusCode() === 401;