Skip to content

[TASK] Use dependency injection in commands#69

Merged
xperseguers merged 1 commit intoFriendsOfTYPO3:mainfrom
brotkrueml:use-di-in-commands
Nov 11, 2025
Merged

[TASK] Use dependency injection in commands#69
xperseguers merged 1 commit intoFriendsOfTYPO3:mainfrom
brotkrueml:use-di-in-commands

Conversation

@brotkrueml
Copy link
Contributor

Injecting an instance of the Setup class in the commands allows us to add tests for those commands. The tests just check if the right Setup method is called and the output is correct.

@brotkrueml brotkrueml marked this pull request as draft April 3, 2025 18:14
@brotkrueml
Copy link
Contributor Author

Waiting for #67 to be merged.

@xperseguers
Copy link
Contributor

Is this still considered WIP or shall we merge it?

@brotkrueml
Copy link
Contributor Author

Will work on it again on autumn. The next weeks I have other priorities and then vacation.

@brotkrueml brotkrueml force-pushed the use-di-in-commands branch 3 times, most recently from 455a22b to 0dc9a51 Compare November 11, 2025 17:17
Injecting an instance of the Setup class in the commands allows us to add tests for those commands.
The tests just check if the right Setup method is called and the output is correct.
@brotkrueml brotkrueml marked this pull request as ready for review November 11, 2025 17:22
@xperseguers xperseguers merged commit 24321b2 into FriendsOfTYPO3:main Nov 11, 2025
11 checks passed
@brotkrueml brotkrueml deleted the use-di-in-commands branch November 11, 2025 19:06
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.

2 participants