Fixed ContentBasedErrorHandler fatching error handlers from the composed plugin manager

This commit is contained in:
Alejandro Celaya 2016-07-30 10:47:29 +02:00
parent 7394424a43
commit 2a018f5415

View File

@ -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