Closed enumag closed 7 years ago
This seems strange to me. So first start a server, then add Bundle to AppKernel?
The order doesn't matter.
Thanks. Have you tried debugging and find the issue?
Could you check the version of this package installed? I recall this was some issue in the past versions.
It should be the latest - composer outdated didn't mention this package.
I tried to debug it but only briefly. It seems that the extension didn't properly configure the parameters of this service for some reason. But I didn't have time to go further. I don't quite understand why Symfony didn't fail on it when this package wasn't install - need to check the compiled source what arguments were passed.
Ok, sounds bit complicated for now. I hope you will figure it out.
If you send failing test, I think I can fix it.
Quick update of what I found out. I should be able to add a failing test when I find some time. The problem is probably in DefinitionAnalyzer::haveMissingArgumentsTypehints() - I think it returns true when it shouldn't.
I see. Feel free to fix it without test, it might be less work with more efficiency.
What needs to be done here?
Simple, I need to get some time to work on it. :-D
So not relevant issue in your app? :)
Oh it is relevant, just not a priority at the moment.
Ok, thanks for update.
@TomasVotruba This was fixed in 1.4.9 but is broken again in 1.4.10. Reopen please.
I'm sorry about that. I recall I got lost in naming and tests.
This DefinitionAnalyzer requires great refactoring.
Related to https://github.com/Symplify/Symplify/issues/161 and other feedback I got I wonder,
should we exclude 3rd party bundles and limit this just to /app
and /src
scope?
It would make sense to me and prevent such issues and redundant checking of 3rd party bundles.
Sounds good.
:+1:
Discussion continue here: https://github.com/Symplify/Symplify/issues/161#issuecomment-299229518
Could you express your opinion on there as well? Now it's just 2 opposite ones.
Maybe tomorrow. It's kind of TL;DR and I have many things to do today.
I understand that, thank you. Here is tl;dr; summary:
https://github.com/Symplify/Symplify/issues/161#issuecomment-299243468
Based on discussion in Pehapkari slack, https://pehapkari.slack.com/archives/C2R38JZV3/p1493917175282658, I might consider deprecating it since Symfony 3.3.
I got feedback it's not as useful as it seems.
Based on community feedback, I've decided to this bundle from Symfony 3.3 on.
Steps to reproduce:
Now add DefaultAutowireBundle to AppKernel.php.
In the browser you should see this error.