CoreFiles by mySites.guru
LoggerAwareTrait.php22 lines, 347 bytes, from Joomla_5.2.4-Stable-Full_Package.zip
Raw History Compare with 5.2.3
md5
e39f7d94e9462753eb828b02d2d1bd40
sha1
07918c0cb0fd8af83319249f60f6df878e80d2f0
sha256
eb114e265de2d1c8c1190b0fa9cb5f8a25e262a46d1d28d1aa02f01aaf025c64
<?php

namespace Psr\Log;

/**
 * Basic Implementation of LoggerAwareInterface.
 */
trait LoggerAwareTrait
{
    /**
     * The logger instance.
     */
    protected ?LoggerInterface $logger = null;

    /**
     * Sets a logger.
     */
    public function setLogger(LoggerInterface $logger): void
    {
        $this->logger = $logger;
    }
}

The same content is in 116 releases, Joomla 5.2.0-beta2 to 6.3.0-alpha1. See them all, or every version of this file.