Skip to content

Remove parent constructor call in CheckUsersCommand#8137

Closed
othercorey wants to merge 1 commit into
5.xfrom
othercorey-patch-1
Closed

Remove parent constructor call in CheckUsersCommand#8137
othercorey wants to merge 1 commit into
5.xfrom
othercorey-patch-1

Conversation

@othercorey

Copy link
Copy Markdown
Contributor

This was removed and causes a container exception.

@othercorey othercorey added this to the 5.x milestone Nov 24, 2025
@LordSimal

LordSimal commented Nov 24, 2025

Copy link
Copy Markdown
Contributor

I have that in all my commands and have no problems with it.

It is actually needed to create subcommands from the factory.

@othercorey

Copy link
Copy Markdown
Contributor Author

I have that in all my commands and have no problems with it.

It is actually needed to create subcommands from the factory.

You're creating commands with dependency injection?

@LordSimal

Copy link
Copy Markdown
Contributor

No, but thats the reason why that call is necessary.

@othercorey

Copy link
Copy Markdown
Contributor Author

Can you explain more?

@LordSimal

Copy link
Copy Markdown
Contributor

See cakephp/cakephp#17957

@LordSimal

Copy link
Copy Markdown
Contributor

so the question is: What causes your exception since it shouldn't happen.

@dereuromark

Copy link
Copy Markdown
Member

We should also add a note inline to why this line is here

@othercorey

othercorey commented Nov 24, 2025

Copy link
Copy Markdown
Contributor Author

See cakephp/cakephp#17957

Ah, somehow I was reading a version without that defined and that's why I was confused. Also, my edit suggestion makes no sense ... I don't know why I read it that way.

@othercorey othercorey closed this Nov 24, 2025
@othercorey othercorey deleted the othercorey-patch-1 branch December 1, 2025 19:32
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.

3 participants