Closed georgringer closed 5 months ago
Thx for your hints. Any real problems or simply a small rant?
I guess not. I will consider using more DI even if this is often a pain. Nevertheless, there is nothing to do for the moment. It is more a general task.
it is not a rant, but saw it because phpstorm told me about some warnings
and it is smaller to read
$event = $this->eventDispatcher->dispatch(
new NewsletterParseSubjectEvent($subject, $properties)
);
Please stop using
GeneralUtility::makeInstance()
everywhere! It is only needed ifPlease don't use for stuff like creating basic objections, especially not:
GeneralUtility::makeInstance(User::class);