]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/filter/console/class_Console
Filter for node initialization added, more preparation for intercepting filter pattern
[hub.git] / application / hub / main / filter / console / class_Console
index d6565af8a6a201062d0302a727d0bf7f3259330f..72f5657b2bb4846ec2507169fc43f4a82f2b0fd6 100644 (file)
@@ -54,8 +54,17 @@ class Console???Filter extends BaseFilter implements Filterable {
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+               // Get node instance
+               $nodeInstance = Registry::getRegistry()->getInstance('node');
+
+               // Sanity-check on it
+               if (is_null($nodeInstance)) {
+                       // Throws a FilterChainException to stop further processing
+                       throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
+               } // END - if
+
                // Implement this!
-               $this->partialStub("Please implement this method.");
+               $this->partialStub('Please implement this method.');
        }
 }