Small bootstrap.php cleanup.

This commit is contained in:
Dmitry Khomutov 2018-03-09 18:46:09 +07:00
commit fee4b127b0
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
2 changed files with 7 additions and 11 deletions

View file

@ -24,15 +24,8 @@ if (!defined('RUNTIME_DIR')) {
define('RUNTIME_DIR', ROOT_DIR . 'runtime/');
}
require_once(ROOT_DIR . 'vendor/autoload.php');
$conf = [];
$conf['php-censor']['url'] = 'http://php-censor.local';
$config = new PHPCensor\Config($conf);
if (!defined('APP_URL')) {
define('APP_URL', $config->get('php-censor.url', '') . '/');
define('APP_URL', 'http://php-censor.local/');
}
\PHPCensor\Helper\Lang::init($config);
require_once(ROOT_DIR . 'vendor/autoload.php');