]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/filter/bootstrap/node/class_NodeBootstrapGenerateSessionIdFilter.php
Updated 'core'.
[hub.git] / application / hub / main / filter / bootstrap / node / class_NodeBootstrapGenerateSessionIdFilter.php
index 4e0d06fbe0d045d71d6e03a1a82f6df340d77565..63a4ed98de041614325889cbc0798383706a3d37 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A GenerateSessionId filter for bootstrapping
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
  * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Node Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-class NodeBootstrapGenerateSessionIdFilter extends BaseFilter implements Filterable {
+class NodeBootstrapGenerateSessionIdFilter extends BaseNodeFilter implements Filterable {
        /**
         * Protected constructor
         *
@@ -55,11 +55,12 @@ class NodeBootstrapGenerateSessionIdFilter extends BaseFilter implements Filtera
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $nodeInstance = Registry::getRegistry()->getInstance('node');
+               $nodeInstance = NodeObjectFactory::createNodeInstance();
 
-               // ------------------- More generic bootstrap steps -------------------
-               // Generate the session id which will only be stored in RAM and kept for
-               // the whole "session".
+               /*
+                * Generate the session id which will only be stored in RAM and kept for
+                * the whole "session".
+                */
                $nodeInstance->bootstrapGenerateSessionId();
        }
 }