Fix config mapping for BaseCommand
This commit is contained in:
parent
0b04c22b58
commit
fb1af97bae
@ -66,8 +66,9 @@ class BaseCommand extends Command {
|
|||||||
protected function setupContainer()
|
protected function setupContainer()
|
||||||
{
|
{
|
||||||
$APP_DIR = realpath(__DIR__ . '/../../app');
|
$APP_DIR = realpath(__DIR__ . '/../../app');
|
||||||
|
$APPCONF_DIR = realpath("{$APP_DIR}/appConf/");
|
||||||
$CONF_DIR = realpath("{$APP_DIR}/config/");
|
$CONF_DIR = realpath("{$APP_DIR}/config/");
|
||||||
require_once $CONF_DIR . '/base_config.php'; // $base_config
|
require_once $APPCONF_DIR . '/base_config.php'; // $base_config
|
||||||
|
|
||||||
$config = loadToml($CONF_DIR);
|
$config = loadToml($CONF_DIR);
|
||||||
$config_array = array_merge($base_config, $config);
|
$config_array = array_merge($base_config, $config);
|
||||||
@ -108,7 +109,7 @@ class BaseCommand extends Command {
|
|||||||
|
|
||||||
// Models
|
// Models
|
||||||
$container->set('kitsu-model', function($container) {
|
$container->set('kitsu-model', function($container) {
|
||||||
$listItem = new Kitsu\istItem();
|
$listItem = new Kitsu\ListItem();
|
||||||
$listItem->setContainer($container);
|
$listItem->setContainer($container);
|
||||||
$model = new Kitsu\Model($listItem);
|
$model = new Kitsu\Model($listItem);
|
||||||
$model->setContainer($container);
|
$model->setContainer($container);
|
||||||
|
Loading…
Reference in New Issue
Block a user