mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-17 07:49:54 +03:00
Fixed ContentBasedErrorHandler fatching error handlers from the composed plugin manager
This commit is contained in:
parent
7394424a43
commit
2a018f5415
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue