* @todo Implement this method
*/
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();
}
/**
}
/**
- * 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.');
}
}