From: Roland Häder Date: Mon, 30 Mar 2009 06:45:21 +0000 (+0000) Subject: doBootstrapping() rewritten X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a639958849350c1db6d4562a74ef48182bc75a37;p=hub.git doBootstrapping() rewritten --- diff --git a/application/hub/interfaces/nodes/class_NodeHelper.php b/application/hub/interfaces/nodes/class_NodeHelper.php index 140f53a6e..fb7513c2b 100644 --- a/application/hub/interfaces/nodes/class_NodeHelper.php +++ b/application/hub/interfaces/nodes/class_NodeHelper.php @@ -25,12 +25,12 @@ interface NodeHelper extends FrameworkInterface { /** * Method to "bootstrap" the node. This step does also apply provided - * command-line arguments stored in the request instance + * command-line arguments stored in the request instance. You should now + * get it from calling $this->getRequestInstance(). * - * @param $requestInstance An instance of a Requestable class * @return void */ - function doBootstrapping (Requestable $requestInstance); + function doBootstrapping (); } // diff --git a/application/hub/main/nodes/boot/class_HubBootNode.php b/application/hub/main/nodes/boot/class_HubBootNode.php index e24aec2a5..b5bd06069 100644 --- a/application/hub/main/nodes/boot/class_HubBootNode.php +++ b/application/hub/main/nodes/boot/class_HubBootNode.php @@ -54,10 +54,10 @@ class HubBootNode extends BaseHubNode implements NodeHelper { * command-line arguments stored in the request instance. The regular node * should communicate with the bootstrap-nodes at this point. * - * @param $requestInstance An instance of a Requestable class * @return void + * @todo Implement this method */ - public function doBootstrapping (Requestable $requestInstance) { + public function doBootstrapping () { // Call generic (parent) bootstrapping method parent::doGenericBootstrapping(); $this->partialStub("Please implement this method."); diff --git a/application/hub/main/nodes/class_ b/application/hub/main/nodes/class_ index 17cb01b59..c357328a7 100644 --- a/application/hub/main/nodes/class_ +++ b/application/hub/main/nodes/class_ @@ -54,10 +54,10 @@ class Hub???Node extends BaseHubNode implements NodeHelper { * command-line arguments stored in the request instance. The regular node * should communicate with the bootstrap-nodes at this point. * - * @param $requestInstance An instance of a Requestable class * @return void + * @todo Implement this method */ - public function doBootstrapping (Requestable $requestInstance) { + public function doBootstrapping () { // Call generic (parent) bootstrapping method parent::doGenericBootstrapping(); $this->partialStub("Please implement this method."); diff --git a/application/hub/main/nodes/list/class_BootListNode.php b/application/hub/main/nodes/list/class_BootListNode.php index 86987565d..d0addef0d 100644 --- a/application/hub/main/nodes/list/class_BootListNode.php +++ b/application/hub/main/nodes/list/class_BootListNode.php @@ -54,10 +54,10 @@ class HubListNode extends BaseHubNode implements NodeHelper { * command-line arguments stored in the request instance. The regular node * should communicate with the bootstrap-nodes at this point. * - * @param $requestInstance An instance of a Requestable class * @return void + * @todo Implement this method */ - public function doBootstrapping (Requestable $requestInstance) { + public function doBootstrapping () { // Call generic (parent) bootstrapping method parent::doGenericBootstrapping(); $this->partialStub("Please implement this method."); diff --git a/application/hub/main/nodes/master/class_HubMasterNode.php b/application/hub/main/nodes/master/class_HubMasterNode.php index e2e2a1f2f..9f41a0311 100644 --- a/application/hub/main/nodes/master/class_HubMasterNode.php +++ b/application/hub/main/nodes/master/class_HubMasterNode.php @@ -54,10 +54,10 @@ class HubMasterNode extends BaseHubNode implements NodeHelper { * command-line arguments stored in the request instance. The regular node * should communicate with the bootstrap-nodes at this point. * - * @param $requestInstance An instance of a Requestable class * @return void + * @todo Implement this method */ - public function doBootstrapping (Requestable $requestInstance) { + public function doBootstrapping () { // Call generic (parent) bootstrapping method parent::doGenericBootstrapping(); $this->partialStub("Please implement this method."); diff --git a/application/hub/main/nodes/regular/class_HubRegularNode.php b/application/hub/main/nodes/regular/class_HubRegularNode.php index dd9105121..fd3dbab98 100644 --- a/application/hub/main/nodes/regular/class_HubRegularNode.php +++ b/application/hub/main/nodes/regular/class_HubRegularNode.php @@ -54,10 +54,10 @@ class HubRegularNode extends BaseHubNode implements NodeHelper { * command-line arguments stored in the request instance. The regular node * should communicate with the bootstrap-nodes at this point. * - * @param $requestInstance An instance of a Requestable class * @return void + * @todo Implement this method */ - public function doBootstrapping (Requestable $requestInstance) { + public function doBootstrapping () { // Call generic (parent) bootstrapping method parent::doGenericBootstrapping(); $this->partialStub("Please implement this method.");