|
@@ -30,14 +30,14 @@ class AMQPRemoteCommand extends ContainerAwareCommand
|
|
|
{
|
|
|
$name = $input->getArgument('name');
|
|
|
$args = $input->getOption('args');
|
|
|
+ $date = date("Y-m-d H:i:s");
|
|
|
if ($name) {
|
|
|
$producer = $this->getContainer()->get('old_sound_rabbit_mq.command_producer_producer');
|
|
|
- $route = $input->getOption('route');
|
|
|
+ $route = $input->getOption('route');
|
|
|
$producer->publish(serialize(compact('name', 'args')), $route);
|
|
|
-
|
|
|
- $output->writeln('<info>Command executed!</info>');
|
|
|
+ $output->writeln("<info>Command executed:</info> {$date} # {$name} # ".implode(" ",$args));
|
|
|
} else {
|
|
|
- $output->writeln('<error>Enter a valid command</error>');
|
|
|
+ $output->writeln("<error>Enter a valid command:</error> {$date} # {$name} # ".implode(" ",$args));
|
|
|
}
|
|
|
}
|
|
|
|