-
-
Save alfrekjv/e44d232ba92156de26d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
// All relative paths start from the main directory, not from /public/ | |
chdir(dirname(__DIR__)); | |
// Lets include PPI | |
include('app/init.php'); | |
include('app/siteManager.php'); | |
include('app/translations.config.php'); | |
// Initialise our PPI App | |
$sm = new SiteManager(); | |
$app = new PPI\App(); | |
$config = include($sm->getConfigFile()); | |
$config['datasource.connections'] = include($sm->getDataSource()); | |
$config['environment'] = $sm->getEnv(); | |
$app->moduleConfig = include($sm->getModuleConfig()); | |
$app->config = $config; | |
// If you are using the DataSource component, enable this | |
$app->useDataSource = true; | |
$app->boot()->dispatch(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment