From: Roland Häder Date: Wed, 14 Mar 2012 14:10:16 +0000 (+0000) Subject: Debug lines added, constant name fixed, internal TODO closed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=28d6f41b9181138b991bdc1ec8b18ebf0fc27430;p=hub.git Debug lines added, constant name fixed, internal TODO closed --- diff --git a/application/hub/main/filter/node/class_NodeInitializationFilter.php b/application/hub/main/filter/node/class_NodeInitializationFilter.php index 27a4cfccc..31fa186f9 100644 --- a/application/hub/main/filter/node/class_NodeInitializationFilter.php +++ b/application/hub/main/filter/node/class_NodeInitializationFilter.php @@ -51,11 +51,11 @@ class NodeInitializationFilter extends BaseFilter implements Filterable { * @param $requestInstance An instance of a class with an Requestable interface * @param $responseInstance An instance of a class with an Responseable interface * @return void - * @todo 0% done */ public function execute (Requestable $requestInstance, Responseable $responseInstance) { // The default node-mode is from our configuration $nodeMode = $this->getConfigInstance()->getConfigEntry('node_default_mode'); + //* DEBUG: */ $this->debugOutput('[INIT:] Got default node mode ' . $nodeMode . ' from configuration.'); // Is the node 'mode' parameter set? if ($requestInstance->isRequestElementSet('mode')) { @@ -90,6 +90,7 @@ class NodeInitializationFilter extends BaseFilter implements Filterable { // Set the node instance in registry Registry::getRegistry()->addInstance('node', $nodeInstance); + //* DEBUG: */ $this->debugOutput('[INIT:] Node ' . $nodeMode . ' has been added to registry.'); } } diff --git a/application/hub/main/filter/node/class_NodePhpRequirementsFilter.php b/application/hub/main/filter/node/class_NodePhpRequirementsFilter.php index d11524e14..895e89d7c 100644 --- a/application/hub/main/filter/node/class_NodePhpRequirementsFilter.php +++ b/application/hub/main/filter/node/class_NodePhpRequirementsFilter.php @@ -69,7 +69,7 @@ class NodePhpRequirementsFilter extends BaseFilter implements Filterable { // Are all tests passed? if ($checkPassed === false) { // Throw an exception - throw new FilterChainException($this, self::FILTER_CHAIN_INTERCEPTED); + throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED); } // END - if } }