Symfony\Component\Console\Application::getHelperSet PHP Method

getHelperSet() public method

Get the helper set associated with the command.
public getHelperSet ( ) : Symfony\Component\Console\Helper\HelperSet
return Symfony\Component\Console\Helper\HelperSet The HelperSet instance associated with this command
    public function getHelperSet()
    {
        return $this->helperSet;
    }

Usage Example

 public static function setApplicationDocumentManager(Application $application, $dmName)
 {
     $service = null === $dmName ? 'doctrine_phpcr.odm.document_manager' : 'doctrine_phpcr.odm.' . $dmName . '_document_manager';
     $documentManager = $application->getKernel()->getContainer()->get($service);
     $helperSet = $application->getHelperSet();
     $helperSet->set(new DocumentManagerHelper(null, $documentManager));
 }
All Usage Examples Of Symfony\Component\Console\Application::getHelperSet