Skip to content

Commit

Permalink
[TASK] Update properties injection in FrontendController
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Nov 19, 2024
1 parent 990a344 commit 20dbc52
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions Classes/Controller/FrontendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@

class FrontendController extends ActionController
{
protected ConfigurationService $configurationService;
protected CompanyTracker $companyTracker;
protected PageTracker $pageTracker;
protected EventTracker $eventTracker;
protected NewsTracker $newsTracker;
protected SearchTracker $searchTracker;
protected EventDispatcherInterface $eventDispatcher;
protected LoggerInterface $logger;
protected array $allowedActions = [
'pageRequest',
'eventTrackRequest',
Expand All @@ -67,23 +59,14 @@ class FrontendController extends ActionController
];

public function __construct(
ConfigurationService $configurationService,
CompanyTracker $companyTracker,
PageTracker $pageTracker,
EventTracker $eventTracker,
NewsTracker $newsTracker,
SearchTracker $searchTracker,
EventDispatcherInterface $eventDispatcher,
LoggerInterface $logger
readonly protected ConfigurationService $configurationService,
readonly protected CompanyTracker $companyTracker,
readonly protected PageTracker $pageTracker,
readonly protected EventTracker $eventTracker,
readonly protected NewsTracker $newsTracker,
readonly protected SearchTracker $searchTracker,
readonly protected LoggerInterface $logger
) {
$this->configurationService = $configurationService;
$this->companyTracker = $companyTracker;
$this->pageTracker = $pageTracker;
$this->eventTracker = $eventTracker;
$this->newsTracker = $newsTracker;
$this->searchTracker = $searchTracker;
$this->eventDispatcher = $eventDispatcher;
$this->logger = $logger;
}

/**
Expand Down

0 comments on commit 20dbc52

Please sign in to comment.