Skip to content

Conversation

@othercorey
Copy link
Member

This was removed and causes a container exception.

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

LordSimal commented Nov 24, 2025

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
Member 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
Contributor

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

@othercorey
Copy link
Member Author

Can you explain more?

@LordSimal
Copy link
Contributor

See cakephp/cakephp#17957

@LordSimal
Copy link
Contributor

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

@dereuromark
Copy link
Member

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

@othercorey
Copy link
Member Author

othercorey commented Nov 24, 2025

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.

4 participants