You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Instead of running the command directly, a CommandClient could be created (that could be like the "HttpClient", that allows to run any command and access the container before.
Describe alternatives you've considered
Maybe instead of having the ability to reuse the current kernel in protected function runCommand(string $name, array $params = [], bool $reuseKernel = false), it could be useful to provide your own kernel (and use a kernel from createClient ?)
The text was updated successfully, but these errors were encountered:
I fear that that approach could be flawed. The reason for reusing the kernel is that it's already booted, so any edit is not lost before launching the command.
How would you suggest to pass a different Kernel? Wouldn't be dangerous, due to differences in respect to the system under test?
Is your feature request related to a problem? Please describe.
I'm "mocking" some services when using the test client. It's something like that:
Describe the solution you'd like
Instead of running the command directly, a
CommandClient
could be created (that could be like the "HttpClient", that allows to run any command and access the container before.Describe alternatives you've considered
Maybe instead of having the ability to reuse the current kernel in
protected function runCommand(string $name, array $params = [], bool $reuseKernel = false)
, it could be useful to provide your own kernel (and use a kernel fromcreateClient
?)The text was updated successfully, but these errors were encountered: