You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #253 Enforce that channels defined in the config are public loggers (stof)
This PR was merged into the 3.x-dev branch.
Discussion
----------
Enforce that channels defined in the config are public loggers
Channels can be created for 2 reasons:
- because a service requests to use it through the monolog.logger tag, in which case a private channel is fine (as it is injected using the DIC)
- because the bundle config asks to create it. In this case, the channel should be a public service, as the use case is to be able to use this channel through public access (otherwise, the previous way would have been used).
This is an improved versions over #247 as only channels created through config become public in Symfony 4.
/cc @derrabus
Commits
-------
3f29cb2 Enforce that channels defined in the config are public loggers
0 commit comments