-
-
Notifications
You must be signed in to change notification settings - Fork 238
Add priority field to processor tags #485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.x
Are you sure you want to change the base?
Conversation
@alexndlm Did you review and test the change in your projects? I agree that we should try to get it merged. |
Of course not, I have unlimited trust in Symfony 😎 But I will do this soon to double-check. |
Thank you! I personally don't need this feature at the moment. So getting feedback from someone who'd actually use it is more than valuable to us. |
Looks like PR is needed for symfony/symfony#54445? |
@nicolas-grekas no. this PR does not affect the Symfony PR (see my comment on the Symfony PR) |
@derrabus I have tested it, and it works perfectly |
@derrabus, my bad, it does not work; I have found one issue. When we add some processor only for channel And in So, when DI create The same issue should be for any channel. |
@HypeMC, do you have time to fix this? |
@alexndlm Sorry for the late reply, I missed your feedback. The issue should be fixed with 1ad6fc7. |
5c3db6c
to
4c1bd07
Compare
4c1bd07
to
f7038da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with some improvement that can be done later.
} else { | ||
if ($this->channelPass) { | ||
$definitions = []; | ||
foreach ($this->channelPass->getChannels() as $channel) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compiler passes should be stateless. We can add a tag to the logger definitions so that we can retrieve them with $container->findTaggedServiceIds('monolog.channel_logger')
} else { | ||
if ($this->channelPass) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: you can combine else
and if
into elseif
Continuation of #455.
Probably better to review with whitespace changes ignored.