public static function getInstance(OutputInterface $output, InputInterface $input)
    {
        $questionHelper = new QuestionHelper();
        $application    = new Application('Code Generator Command Line Interface', 'Alpha');
        $application->getHelperSet()->set(new FormatterHelper(), 'formatter');
        $application->getHelperSet()->set($questionHelper, 'question');

        $context = new CliContext(
            $questionHelper,
            $output,
            $input,
            CreateCommandFactory::getInstance($application)
        );

        $mainBackbone = MainBackboneFactory::getInstance($context);

        $mainBackbone->run();

        return $application;
    }
public static function getInstance(OutputInterface $output, InputInterface $input)
    {
        $questionHelper = new QuestionHelper();
        $application    = new Application('Code Generator Command Line Interface', 'Alpha');
        $application->getHelperSet()->set(new FormatterHelper(), 'formatter');
        $application->getHelperSet()->set($questionHelper, 'question');

        $context = new CliContext(
            $questionHelper,
            $output,
            $input,
            CreateCommandFactory::getInstance($application)
        );

        $mainBackbone = MainBackboneFactory::getInstance($context);

        $mainBackbone->run();

        return $application;
    }
public static function getInstance ( OutputInterface $ output , InputInterface $ input ) { $ questionHelper = new QuestionHelper ( ) ; $ application = new Application ( 'Code Generator Command Line Interface' , 'Alpha' ) ; $ application -> getHelperSet ( ) -> set ( new FormatterHelper ( ) , 'formatter' ) ; $ application -> getHelperSet ( ) -> set ( $ questionHelper , 'question' ) ; $ context = new CliContext ( $ questionHelper , $ output , $ input , CreateCommandFactory :: getInstance ( $ application ) ) ; $ mainBackbone = MainBackboneFactory :: getInstance ( $ context ) ; $ mainBackbone -> run ( ) ; return $ application ; }
Create CLI instance

@param  OutputInterface                        $output
@param  InputInterface                         $input
@return \Symfony\Component\Console\Application
Create CLI instance