LoggerEnabled Fix

This commit is contained in:
Juan Pablo Vial
2025-06-25 18:11:28 -04:00
parent ab7328b40b
commit a2a9f4bbb4
2 changed files with 10 additions and 11 deletions

View File

@ -6,13 +6,12 @@ use Psr\Log\LoggerInterface;
abstract class LoggerEnabled implements LoggerAwareInterface
{
protected LoggerInterface $logger;
public function setLogger(LoggerInterface $logger): void
{
$this->logger = $logger;
}
public function getLogger(): LoggerInterface
{
return $this->logger;
public LoggerInterface $logger {
get {
return $this->logger;
}
set(LoggerInterface $value) {
$this->logger = $value;
}
}
}