From: Roland Häder Date: Fri, 19 May 2017 00:26:52 +0000 (+0200) Subject: Need to set namespace + in config entries (some) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=94cddce30616cb9056e30b2180e4dfbecc7da7e3;p=hub.git Need to set namespace + in config entries (some) Signed-off-by: Roland Häder --- diff --git a/application/hub/classes/resolver/command/console/class_HubConsoleCommandResolver.php b/application/hub/classes/resolver/command/console/class_HubConsoleCommandResolver.php index ed41bdd21..aa26c2764 100644 --- a/application/hub/classes/resolver/command/console/class_HubConsoleCommandResolver.php +++ b/application/hub/classes/resolver/command/console/class_HubConsoleCommandResolver.php @@ -65,7 +65,8 @@ class HubConsoleCommandResolver extends BaseCommandResolver implements CommandRe throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND); } - // Set the application instance + // Set namespace and application instance + $resolverInstance->setNamespace('Hub\Command'); $resolverInstance->setApplicationInstance($applicationInstance); // Return the prepared instance diff --git a/application/hub/classes/resolver/command/html/class_HubHtmlCommandResolver.php b/application/hub/classes/resolver/command/html/class_HubHtmlCommandResolver.php index cc8819009..a71ad087d 100644 --- a/application/hub/classes/resolver/command/html/class_HubHtmlCommandResolver.php +++ b/application/hub/classes/resolver/command/html/class_HubHtmlCommandResolver.php @@ -65,7 +65,8 @@ class HubHtmlCommandResolver extends BaseCommandResolver implements CommandResol throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND); } - // Set the application instance + // Set namespace and application instance + $resolverInstance->setNamespace('Hub\Command'); $resolverInstance->setApplicationInstance($applicationInstance); // Return the prepared instance diff --git a/application/hub/config.php b/application/hub/config.php index b20eeca15..e9e2c94b6 100644 --- a/application/hub/config.php +++ b/application/hub/config.php @@ -160,10 +160,10 @@ $cfg->setConfigEntry('hub_console_cmd_main_resolver_class', 'Hub\Resolver\Comman $cfg->setConfigEntry('network_state_resolver_class', 'NetworkStateResolver'); // CFG: NEWS-DOWNLOAD-FILTER -$cfg->setConfigEntry('news_download_filter', 'NewsDownloadFilter'); +$cfg->setConfigEntry('news_download_filter', 'CoreFramework\Filter\News\NewsDownloadFilter'); // CFG: NEWS-PROCESS-FILTER -$cfg->setConfigEntry('news_process_filter', 'NewsProcessFilter'); +$cfg->setConfigEntry('news_process_filter', 'CoreFramework\Filter\News\NewsProcessFilter'); // CFG: NODE-PHP-REQUIREMENTS-FILTER $cfg->setConfigEntry('node_php_requirements_filter', 'NodePhpRequirementsFilter');