Skip to content
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

Ability to specify PSR-3 logger to log an autowire hit #876

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

alexandrmazur96
Copy link

The issue is described here #608

Because autowiring is not a cheap operation and can be significantly optimized by compiling container - I, as a developer, want to know for what class autowiring happened.

To solve this, currently, there is only one option - disable autowiring and try to fix an exception in classes that weren't specified to autowire in the container definitions. In some cases, it's not a good solution.

This PR provides a new option to solve this - provide a logger and log autowiring hit, so I, as a developer, can smoothly fix it without production being broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant