CoreFiles by mySites.guru
LoggerAwareTrait.php26 lines, 432 bytes, from Joomla_5.0.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 4.4.0-alpha4
md5
92456b3a37e21d536d82b990effa2b37
sha1
dea22b747e6d0513f7348bb4a8c31112b8c3e995
sha256
bf9a3cca73303f2c0a7245b7351dd89a4bed6aee63a35ba2e3eec0ff377d1bcd
<?php

namespace Psr\Log;

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

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

The same content is in 42 releases, Joomla 5.0.0-alpha1 to 5.2.0-beta1. See them all, or every version of this file.