]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/commands/console/class_HubConsoleMainCommand.php
Filters and chains added:
[hub.git] / application / hub / main / commands / console / class_HubConsoleMainCommand.php
index 20b23e4c8185584d827d32764bdb235e97ce98e6..996298827186cb56fb61a084001de5554ef0c590 100644 (file)
@@ -92,7 +92,7 @@ class HubConsoleMainCommand extends BaseCommand implements Commandable {
                // -------------------------- Hub activation --------------------------
                // Activates the hub by doing some final preparation steps and setting
                // the attribute $hubIsActive to true
-               $nodeInstance->activateHub();
+               $nodeInstance->activateHub($requestInstance, $responseInstance);
 
                // ----------------------------- Main loop ----------------------------
                // This is the main loop. Queried calls should come back here very fast
@@ -108,6 +108,7 @@ class HubConsoleMainCommand extends BaseCommand implements Commandable {
         * @param       $controllerInstance             A controller instance
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
+        * @todo        Should we add some more filters?
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
                // Add pre filters
@@ -120,6 +121,9 @@ class HubConsoleMainCommand extends BaseCommand implements Commandable {
                $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('hub_bootstrap_restore_nodelist_filter'));
                $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('hub_bootstrap_init_queues_filter'));
                $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('hub_bootstrap_extra_bootstrap_filter'));
+               $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('hub_bootstrap_listener_pool_filter'));
+
+               // Add hub activation filters
        }
 }