config = $config; $this->helpers = $helpers; } public function configure(Application $application): void { $application->setVersion(self::APP_VERSION); $application->setName(self::APP_NAME); $this->registerInputDefinitions($application); $this->registerHelpers($application); } private function registerHelpers(Application $application): void { $helperSet = $application->getHelperSet(); foreach ($this->helpers as $helper) { $helperSet->set($helper); } } private function registerInputDefinitions(Application $application): void { $definition = $application->getDefinition(); $definition->addOption( new InputOption( 'config', 'c', InputOption::VALUE_REQUIRED, 'Path to config' ) ); } }