LoggerAwareStub.php

Same filename in other branches
  1. 10 core/modules/system/tests/modules/logger_aware_test/src/LoggerAwareStub.php

Namespace

Drupal\logger_aware_test

File

core/modules/system/tests/modules/logger_aware_test/src/LoggerAwareStub.php

View source
<?php

declare (strict_types=1);
namespace Drupal\logger_aware_test;

use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LoggerInterface;

/**
 * A test class that implements LoggerAwareInterface.
 */
class LoggerAwareStub implements LoggerAwareInterface {
    use LoggerAwareTrait;
    
    /**
     * Gets the logger.
     */
    public function getLogger() : LoggerInterface {
        return $this->logger;
    }

}

Classes

Title Deprecated Summary
LoggerAwareStub A test class that implements LoggerAwareInterface.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.