public function execute(InputInterface $input, OutputInterface $output) { $name = $input->getArgument('name'); $trainingType = $input->getArgument('training_type'); $type = $input->getArgument('type'); $nbWeek = $input->getArgument('nb_week'); $plan = new Plan(); $plan->setName($name); $plan->setTrainingType($trainingType); $plan->setNbWeek($nbWeek); $plan->setWeekType($type); $planBuilt = $this->getContainer()->get('nb_run_training.builder.plan')->build($plan); dump($planBuilt); }