mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-29 12:04:13 -06:00
Fixed ContentBasedErrorHandler fatching error handlers from the composed plugin manager
This commit is contained in:
parent
7394424a43
commit
2a018f5415
@ -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 it wasn't possible to find an error handler for accepted content type, use default one if registered
|
||||||
if ($this->has(self::DEFAULT_CONTENT)) {
|
if ($this->errorHandlerManager->has(self::DEFAULT_CONTENT)) {
|
||||||
return $this->get(self::DEFAULT_CONTENT);
|
return $this->errorHandlerManager->get(self::DEFAULT_CONTENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
// It wasn't possible to find an error handler
|
// It wasn't possible to find an error handler
|
||||||
|
Loading…
Reference in New Issue
Block a user