【发布时间】:2016-12-22 18:59:16
【问题描述】:
我创建了一个自定义命令。我想用独白记录用户使用参数和选项点击的命令
例如:php bin/console app:my_command argument1 --option=1234
现在我有了:
$this->log->error('error on command', array(
'command_tapped_by_user' => '????',
'command' => $this->getName(),
'arguments' => $input->getArguments(),
'options' => $input->getOptions(),
'exception' => $e->getMessage()
));
谢谢
【问题讨论】: