Update loader config for test.
This commit is contained in:
parent
5b754fe07c
commit
885f947da8
1 changed files with 6 additions and 6 deletions
|
|
@ -13,12 +13,6 @@ date_default_timezone_set(@date_default_timezone_get());
|
|||
// Load Composer autoloader:
|
||||
require_once(dirname(__DIR__) . '/vendor/autoload.php');
|
||||
|
||||
// Load configuration if present:
|
||||
$conf = array();
|
||||
$conf['b8']['app']['namespace'] = 'PHPCI';
|
||||
$conf['b8']['app']['default_controller'] = 'Home';
|
||||
$conf['b8']['view']['path'] = dirname(__DIR__) . '/../PHPCI/View/';
|
||||
|
||||
// If the PHPCI config file is not where we expect it, try looking in
|
||||
// env for an alternative config path.
|
||||
$configFile = dirname(__FILE__) . '/../PHPCI/config.yml';
|
||||
|
|
@ -31,6 +25,12 @@ if (!file_exists($configFile)) {
|
|||
}
|
||||
}
|
||||
|
||||
// Load configuration if present:
|
||||
$conf = array();
|
||||
$conf['b8']['app']['namespace'] = 'PHPCI';
|
||||
$conf['b8']['app']['default_controller'] = 'Home';
|
||||
$conf['b8']['view']['path'] = dirname(__DIR__) . '/PHPCI/View/';
|
||||
|
||||
$config = new b8\Config($conf);
|
||||
|
||||
if (file_exists($configFile)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue