Exemplo n.º 1
0
<?php

chdir(dirname(__DIR__));
include './vendor/autoload.php';
$env = trim(file_get_contents('./ENV'));
$configCache = $env === 'development' ? null : './data/cache/config.php';
Phapp\Application\Bootstrap::init($env, $configCache)->runApplicationOn($_SERVER);
Exemplo n.º 2
0
<?php

chdir(dirname(__DIR__));
include './vendor/autoload.php';
$config = (require './config/application.php');
Phapp\Application\Bootstrap::init($config)->runApplicationOn($_SERVER);