]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/list/class_HubListNode.php
Self-announcement rewritten to a task
[hub.git] / application / hub / main / nodes / list / class_HubListNode.php
index 37e74a0ad5b038716b015eeb855cc4a6bfa0f0f7..7b6f59cc8f0ae213a9a5e06c2c54df23ed4fd542 100644 (file)
@@ -58,14 +58,7 @@ class HubListNode extends BaseHubNode implements NodeHelper, Registerable {
         * @todo        Implement more bootstrap steps
         */
        public function doBootstrapping () {
-               // Do more here
-               $this->partialStub('Do something before hub descriptor is published.');
-
-               // Publish the descriptor of this hub, this will "announce" us to upper hubs
-               $this->publishHubDescriptor();
-
-               // Do more here
-               $this->partialStub('Do something after hub descriptor is published.');
+               $this->partialStub();
        }
 
        /**
@@ -81,15 +74,22 @@ class HubListNode extends BaseHubNode implements NodeHelper, Registerable {
        }
 
        /**
-        * Adds some node-specific filters to the filter chains
+        * Add some node-specific filters
         *
-        * @param       $requestInstance        A Requestable class
-        * @param       $responseInstance       A Responseable class
         * @return      void
-        * @todo        0%
         */
-       public function addExtraFilters (Requestable $requestInstance, Responseable $responseInstance) {
-               $this->partialStub('Please implement this method.');
+       public function addExtraHubFilters () {
+               // Get the application instance from registry
+               $applicationInstance = Registry::getRegistry()->getInstance('app');
+
+               // Get the controller from the application
+               $controllerInstance = $applicationInstance->getControllerInstance();
+
+               // Self-announcement task
+               $controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('hub_activation_self_announcement_task_filter'));
+
+               // @TODO Add some filters here
+               $this->partialStub('Add some filters here.');
        }
 }