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