]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/filter/console/class_Console
News Updated, filters renamed/commented:
[hub.git] / application / hub / main / filter / console / class_Console
index d6565af8a6a201062d0302a727d0bf7f3259330f..6d5c26efe27bc68f8da95f5001eb43647d096302 100644 (file)
@@ -51,11 +51,21 @@ class Console???Filter 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
+        * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @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.');
        }
 }