public static function getApplication()
    {
        restore_error_handler();
        restore_exception_handler();

        $application = new Application('Strata Console Application', '0.1.0');

        $registrar = new ProjectCommandRegistrar($application);
        $registrar->assign();

        $registrar = new MiddlewareCommandRegistrar($application);
        $registrar->assign();

        $registrar = new StrataCommandRegistrar($application);
        $registrar->assign();

        return $application;
    }
public static function getApplication()
    {
        restore_error_handler();
        restore_exception_handler();

        $application = new Application('Strata Console Application', '0.1.0');

        $registrar = new ProjectCommandRegistrar($application);
        $registrar->assign();

        $registrar = new MiddlewareCommandRegistrar($application);
        $registrar->assign();

        $registrar = new StrataCommandRegistrar($application);
        $registrar->assign();

        return $application;
    }
public static function getApplication ( ) { restore_error_handler ( ) ; restore_exception_handler ( ) ; $ application = new Application ( 'Strata Console Application' , '0.1.0' ) ; $ registrar = new ProjectCommandRegistrar ( $ application ) ; $ registrar -> assign ( ) ; $ registrar = new MiddlewareCommandRegistrar ( $ application ) ; $ registrar -> assign ( ) ; $ registrar = new StrataCommandRegistrar ( $ application ) ; $ registrar -> assign ( ) ; return $ application ; }
Returns a application allowing for known commands.
@todo  Account for commands to be loaded by the project namespace (ex: for cron commands).
@return Application The command line application
Returns a application allowing for known commands .