Skip to content

Commit

Permalink
[BUGFIX] Initialize logger in AbstractController (#1340)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored Sep 20, 2024
1 parent 2150690 commit 3e31b86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Psr\Log\LoggerAwareTrait;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Pagination\PaginationInterface;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\MathUtility;
Expand Down Expand Up @@ -111,6 +112,8 @@ protected function initialize(): void
// Get extension configuration.
$this->extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('dlf');

$this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(__CLASS__);

$this->viewData = [
'pageUid' => $this->pageUid,
'uniqueId' => uniqid(),
Expand Down

0 comments on commit 3e31b86

Please sign in to comment.