예제 #1
0
파일: start.php 프로젝트: fredylg/framework
</p>
            </div>
        <?php 
    });
    // Message for the front-end
    if (!is_admin()) {
        wp_die(__("The <strong>Themosis framework</strong> is not loaded properly. Please check your <strong>composer.json</strong> file configuration.", THEMOSIS_FRAMEWORK_TEXTDOMAIN));
    }
    return;
}
// Start the project...
$app = new Themosis\Core\Application();
/*----------------------------------------------------*/
// Set the application paths.
/*----------------------------------------------------*/
$app->bindInstallPaths($GLOBALS['themosis_paths']);
/*----------------------------------------------------*/
// Bind the application in the container.
/*----------------------------------------------------*/
$app->instance('app', $app);
/*----------------------------------------------------*/
// Load the facades.
/*----------------------------------------------------*/
Themosis\Facades\Facade::clearResolvedInstances();
Themosis\Facades\Facade::setFacadeApplication($app);
/*----------------------------------------------------*/
// Register Facade Aliases To Full Classes
/*----------------------------------------------------*/
$app->registerCoreContainerAliases();
/*----------------------------------------------------*/
// Register Core Igniter services
예제 #2
0
            </div>
        <?php 
    });
    // Message for the front-end
    if (!is_admin()) {
        wp_die(__("The <strong>Themosis framework</strong> is not loaded properly. Please check your <strong>composer.json</strong> file configuration.", THEMOSIS_FRAMEWORK_TEXTDOMAIN));
    }
    return;
}
// Start the project...
$app = new Themosis\Core\Application();
/*----------------------------------------------------*/
// Set the application paths.
/*----------------------------------------------------*/
$paths = apply_filters('themosis_application_paths', ['plugin' => dirname(__DIR__), 'sys' => dirname(__DIR__) . DS . 'src' . DS . 'Themosis' . DS]);
$app->bindInstallPaths($paths);
/*----------------------------------------------------*/
// Bind the application in the container.
/*----------------------------------------------------*/
$app->instance('app', $app);
/*----------------------------------------------------*/
// Load the facades.
/*----------------------------------------------------*/
Themosis\Facades\Facade::clearResolvedInstances();
Themosis\Facades\Facade::setFacadeApplication($app);
/*----------------------------------------------------*/
// Register Facade Aliases To Full Classes
/*----------------------------------------------------*/
$app->registerCoreContainerAliases();
/*----------------------------------------------------*/
// Register Core Igniter services