Application = $application->getKernelApplication(); $this->Conn =& $this->Application->GetADODBConnection(); } } /** * Configure the CompletionHandler instance before it is run * * @param CompletionHandler $handler Completion handler. * * @return void */ protected function configureCompletion(CompletionHandler $handler) { // This can be removed once https://github.com/stecman/symfony-console-completion v0.5.2 will be released. $handler->addHandler( new Completion( 'help', 'command_name', Completion::TYPE_ARGUMENT, array_keys($this->getApplication()->all()) ) ); $handler->addHandler( new Completion( 'list', 'namespace', Completion::TYPE_ARGUMENT, $this->getApplication()->getNamespaces() ) ); } }