From 8f8f528823d05d4f9177145cf816623a6ce37e7f Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 10 Feb 2017 16:12:02 -0500 Subject: [PATCH] Fix config mapping for BaseCommand --- src/Command/BaseCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/BaseCommand.php b/src/Command/BaseCommand.php index 63fc16c6..f3dccc1d 100644 --- a/src/Command/BaseCommand.php +++ b/src/Command/BaseCommand.php @@ -66,8 +66,9 @@ class BaseCommand extends Command { protected function setupContainer() { $APP_DIR = realpath(__DIR__ . '/../../app'); + $APPCONF_DIR = realpath("{$APP_DIR}/appConf/"); $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_array = array_merge($base_config, $config); @@ -108,7 +109,7 @@ class BaseCommand extends Command { // Models $container->set('kitsu-model', function($container) { - $listItem = new Kitsu\istItem(); + $listItem = new Kitsu\ListItem(); $listItem->setContainer($container); $model = new Kitsu\Model($listItem); $model->setContainer($container);