From 2a018f54155763b5dc53fd1cc17aa3ee89af05ee Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 30 Jul 2016 10:47:29 +0200 Subject: [PATCH] Fixed ContentBasedErrorHandler fatching error handlers from the composed plugin manager --- module/Common/src/Expressive/ContentBasedErrorHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/Common/src/Expressive/ContentBasedErrorHandler.php b/module/Common/src/Expressive/ContentBasedErrorHandler.php index dbd3d900..6f094f69 100644 --- a/module/Common/src/Expressive/ContentBasedErrorHandler.php +++ b/module/Common/src/Expressive/ContentBasedErrorHandler.php @@ -61,8 +61,8 @@ class ContentBasedErrorHandler implements ErrorHandlerInterface } // If it wasn't possible to find an error handler for accepted content type, use default one if registered - if ($this->has(self::DEFAULT_CONTENT)) { - return $this->get(self::DEFAULT_CONTENT); + if ($this->errorHandlerManager->has(self::DEFAULT_CONTENT)) { + return $this->errorHandlerManager->get(self::DEFAULT_CONTENT); } // It wasn't possible to find an error handler