Application = $application->getKernelApplication(); $this->Conn =& $this->Application->GetADODBConnection(); } } /** * Perform additional validation of the input. * * @param InputInterface $input An InputInterface instance. * @param OutputInterface $output An OutputInterface instance. * * @return void * @throws \RuntimeException When not all required arguments were passed. */ protected function initialize(InputInterface $input, OutputInterface $output) { $arguments = array_filter($input->getArguments()); // Consider required arguments passed with empty values as an error. if ( count($arguments) < $this->getDefinition()->getArgumentRequiredCount() ) { throw new \RuntimeException('Not enough arguments.'); } } }