/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $em = $this->get('entity_manager'); $helperSet = new HelperSet(); $helperSet->set(new ConnectionHelper($em->getConnection()), 'db'); $helperSet->set(new EntityManagerHelper($em), 'em'); $command = new GenerateProxiesCommand(); $command->setHelperSet($helperSet); $arguments = array(); if ($input->getOption('filter')) { $arguments['--filter'] = $input->getOption('filter'); } if ($input->getArgument('dest-path')) { $arguments['dest-path'] = $input->getArgument('dest-path'); } $returnCode = $command->run(new ArrayInput($arguments), $output); return $returnCode; }