Permalink
Browse files

Small bootstrap.php cleanup.

  • Loading branch information...
corpsee committed Mar 9, 2018
1 parent 3783a9d commit fee4b127b077e55546483e27cc680c18b03653f9
Showing with 7 additions and 11 deletions.
  1. +5 −2 bootstrap.php
  2. +2 −9 tests/bootstrap.php
View
@@ -26,7 +26,10 @@
require_once(ROOT_DIR . 'vendor/autoload.php');
$config = new PHPCensor\Config();
use PHPCensor\Config;
use PHPCensor\Helper\Lang;
$config = new Config();
$configFile = APP_DIR . 'config.yml';
if (file_exists($configFile)) {
@@ -37,4 +40,4 @@
define('APP_URL', $config->get('php-censor.url', '') . '/');
}
\PHPCensor\Helper\Lang::init($config);
Lang::init($config);
View
@@ -24,15 +24,8 @@
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');

0 comments on commit fee4b12

Please sign in to comment.