mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOCS Fix incorrect deprecation reference in MonologErrorHandler
This commit is contained in:
parent
14673ffd0a
commit
e8fa3d8750
@ -18,13 +18,13 @@ class MonologErrorHandler implements ErrorHandler
|
|||||||
* Set the PSR-3 logger to send errors & exceptions to. Will overwrite any previously configured
|
* Set the PSR-3 logger to send errors & exceptions to. Will overwrite any previously configured
|
||||||
* loggers
|
* loggers
|
||||||
*
|
*
|
||||||
* @deprecated 4.4.0:5.0.0 Use pushHandler() instead
|
* @deprecated 4.4.0:5.0.0 Use pushLogger() instead
|
||||||
* @param LoggerInterface $logger
|
* @param LoggerInterface $logger
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setLogger(LoggerInterface $logger)
|
public function setLogger(LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
Deprecation::notice('4.4.0', 'Please use pushHandler() instead');
|
Deprecation::notice('4.4.0', 'Please use pushLogger() instead');
|
||||||
|
|
||||||
$this->loggers = [$logger];
|
$this->loggers = [$logger];
|
||||||
return $this;
|
return $this;
|
||||||
@ -33,12 +33,12 @@ class MonologErrorHandler implements ErrorHandler
|
|||||||
/**
|
/**
|
||||||
* Get the first registered PSR-3 logger to send errors & exceptions to
|
* Get the first registered PSR-3 logger to send errors & exceptions to
|
||||||
*
|
*
|
||||||
* @deprecated 4.4.0:5.0.0 Use getHandlers() instead
|
* @deprecated 4.4.0:5.0.0 Use getLoggers() instead
|
||||||
* @return LoggerInterface
|
* @return LoggerInterface
|
||||||
*/
|
*/
|
||||||
public function getLogger()
|
public function getLogger()
|
||||||
{
|
{
|
||||||
Deprecation::notice('4.4.0', 'Please use getHandlers() instead');
|
Deprecation::notice('4.4.0', 'Please use getLoggers() instead');
|
||||||
|
|
||||||
return reset($this->loggers);
|
return reset($this->loggers);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user