-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Do not try to register Contao 3 classes as services #1222
Conversation
Can you please add a description? I don't understand. |
@Toflar the Somewhat related to symfony/symfony#34053 |
Can't we exclude anything coming from |
Those classes would not be within |
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.
Unfortunately, this does not solve the issue. The $definition->hasErrors()
is never true
in my case. 🤷♂
@leofeyer which error happens? |
|
…cts a legacy class
I have updated the PR. We're now automatically removing any class extending from the legacy framework from autoloading, I would argue that these can/should never be services (if you need them, you can still add them manually). I'm also removing any class that has a legacy class in the constructor, as these can/should never be services that can be injected. |
The latest changes fix the problem for me. 👍 |
Thank you @aschempp. |
No description provided.