Skip to content

Conversation

@nicuserban
Copy link
Contributor

@nicuserban nicuserban commented Oct 23, 2025

In this PR https://github.com/symfony/symfony-docs/pull/21507/files , when pointing out that constructor property promotion should not be used when injecting $lockFactory, I also wrongly introduced a parent::__construct() call. As in the current example attribute is used and the example command class is no longer extending Symfony\Component\Console\Command\Command, the call to the constructor of the parent class is actually wrong.

I just wanted to fix this and to apologize for any inconvenience I caused with the back-and-forth related to this issue.

…e which shows how to inject your own LockFactory

In this PR https://github.com/symfony/symfony-docs/pull/21507/files , when pointing out that constructor property promotion should not be used when injecting $lockFactory, I also wrongly introduced a  `parent::__construct()` call.
As in the current example attribute is used and the example command class is no longer extending `Symfony\Component\Console\Command\Command`,  the call to the constructor of the parent class is actually wrong.

I just wanted to fix this and to apologize for any inconvenience I caused with the back-and-forth related to this issue.
@xabbuh
Copy link
Member

xabbuh commented Oct 23, 2025

@nicuserban No need to feel bad, we also didn't notice while reviewing. :) And thank you very much for sending the fix. 👍

@javiereguiluz
Copy link
Member

No worries Nicolae. This is a minor issue and you fixed it very quickly. Thanks a lot!

@javiereguiluz javiereguiluz merged commit a71a0cb into symfony:7.3 Oct 23, 2025
3 checks passed
@nicuserban
Copy link
Contributor Author

Thank you everyone for understanding and for reviewing this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants