Refactored project structure (Improvements).

This commit is contained in:
Dmitry Khomutov 2018-03-04 21:33:35 +07:00
commit 3b700f8d3c
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
5 changed files with 5 additions and 23 deletions

View file

@ -26,12 +26,7 @@ if (!defined('RUNTIME_DIR')) {
require_once(ROOT_DIR . 'vendor/autoload.php');
// Load configuration if present:
$conf = [];
$conf['b8']['app']['namespace'] = 'PHPCensor';
$conf['b8']['app']['default_controller'] = 'Home';
$config = new PHPCensor\Config($conf);
$config = new PHPCensor\Config();
$configFile = APP_DIR . 'config.yml';
if (file_exists($configFile)) {