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;
    }