Conversation
Since it causes a crash on sf5 because setContainer is not called
|
@Gregwar |
|
@ViniTou does this PR fixes SF5 compatibility for you ? |
|
@Gregwar to controller definition but I agree with @l-vo that we do not need whole container there. |
|
Can we know the status for that PR, it would be real great to have that bundle deprecation-less in sf5 ;) |
|
(I am sorry with delays I can have sometime, don't hesitate to ping me more 😅) |
|
I'm having a look this week end. I'm going to try to improve it deprecating public service instead of removing it. |
|
Hello. I am with version v1.1.8 (6088ad3db59bc226423ad1476a9f0424b19b1866). Warning hides when I remove the the |
|
@vibby thank you for your feedback. A fix for the deprecation is proposed in #218. @Gregwar I close this PR in favor of #218 (due to the possible BC breaks). But I still think |
I had a problem when migrating a project to Symfony 5.
The container crashes during compilation because
setContainerofCaptchaControllerwas not called (and it's normal becauseCaptchaControlleris not autowired). To fix this, this PR:extends AbstractControllersinceCaptchaControllerdoesn't use its services/methods anymorecontroller.service_argumentstag to the controller to allow it to be registered even if it doesn't extendsAbstractControlleranymore.I'm suggesting some other changes to match better with the sf4/sf5 DI philosophy:
$container->get('myservice'); I think none of the services of this bundle are concerned.controller.service_argumentstag (and previously theAbstractControllerparent class) allows to make the service public.