addArgument('task_id', InputArgument::REQUIRED, 'The task_id to stop') ->setDescription('Stops a task'); } protected function doExecute(InputInterface $input, OutputInterface $output) { $task = $this->container['converter.task']->convert($input->getArgument('task_id')); $this->container['manipulator.task']->stop($task); return 0; } }