Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Bug: III-3252 #3

Merged
merged 2 commits into from
Apr 9, 2020
Merged

Bug: III-3252 #3

merged 2 commits into from
Apr 9, 2020

Conversation

konrad126
Copy link
Contributor

Added

  • LoggerAwareInterface implemented in ReplayFilteringEventListener

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.9%) to 94.0% when pulling 0717f02 on bug/III-3252 into 93d0100 on master.

*/
public function setLogger(LoggerInterface $logger)
{
$this->logger = $logger;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should also set it on the injected $eventListener though. Otherwise nothing will actually get logged. 😄
You'll have to make that property protected. Or alternatively (maybe better), implement the interface and method on the FilteringEventListener base class instead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was also going to suggest to just remove the base class and move its logic to this class as it seems the only child class, but since it's a package there's a chance that there's other child classes in other packages / apps. So best to keep the base class.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, but the injected $eventListener only implements EventListenerInterface so I cannot call setLogger on it

@konrad126 konrad126 merged commit 42f9663 into master Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants