我想使用 Symfony 控制台组件来制作这样的命令:
app/console config:set someConfigName=someValue anotherConfig=anotherValue
我发现了这个问题:Variable number of options for symfony/console component
但是破解 ArgvInput 并将其传递给 $app->run() 似乎无法维护。为了进行单元测试,我还必须破解 ArrayInput 和 StringInput,而且我不确定是否能够在测试中注入它们。
任何帮助表示赞赏。