MessageCollector
class MessageCollector (View source)
Message Collector
Constants
LOGLEVEL_MAPPING |
|
Properties
protected SplObjectStorage | $messages | ||
protected LoggerInterface | $logger |
Methods
void
injectLogger(LoggerInterface $logger)
Injects the (system) logger based on PSR-3.
__construct()
Message Collector Constructor
void
append(string $message, string $severity = Error::SEVERITY_ERROR, int|null $code = null)
No description
bool
hasMessages()
No description
void
flush(callable $callback = null)
No description
void
__destruct()
Flush all notification during the object lifecycle
Details
void
injectLogger(LoggerInterface $logger)
Injects the (system) logger based on PSR-3.
__construct()
Message Collector Constructor
void
append(string $message, string $severity = Error::SEVERITY_ERROR, int|null $code = null)
No description
bool
hasMessages()
No description
void
flush(callable $callback = null)
No description
void
__destruct()
Flush all notification during the object lifecycle