From dcd5d4c3804908f8b239afeaa53ed224a5e04e8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 6 Nov 2020 13:51:06 +0100 Subject: [PATCH] Continued: - fixed namespaces due to previous seperation of miner and cruncher classes - imported missing classes/interfaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- application/hub/classes/producer/class_BaseProducer.php | 1 - .../classes/producer/miner/blocks/class_BaseBlockProducer.php | 1 + .../miner/blocks/miner/class_MinerRealGenesisBlockProducer.php | 2 +- .../miner/blocks/miner/class_MinerTestGenesisBlockProducer.php | 2 +- .../hub/classes/producer/miner/class_BaseMinerProducer.php | 3 +++ .../block_producer/class_MinerRealGenesisBlockProducerTask.php | 2 +- .../block_producer/class_MinerTestGenesisBlockProducerTask.php | 2 +- 7 files changed, 8 insertions(+), 5 deletions(-) diff --git a/application/hub/classes/producer/class_BaseProducer.php b/application/hub/classes/producer/class_BaseProducer.php index c90269965..377191ba1 100644 --- a/application/hub/classes/producer/class_BaseProducer.php +++ b/application/hub/classes/producer/class_BaseProducer.php @@ -7,7 +7,6 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; // Import framework stuff use Org\Mxchange\CoreFramework\Factory\ObjectFactory; -use Org\Mxchange\CoreFramework\Registry\GenericRegistry; use Org\Mxchange\CoreFramework\Stacker\Stackable; /** diff --git a/application/hub/classes/producer/miner/blocks/class_BaseBlockProducer.php b/application/hub/classes/producer/miner/blocks/class_BaseBlockProducer.php index 1e0bd9b10..901be771a 100644 --- a/application/hub/classes/producer/miner/blocks/class_BaseBlockProducer.php +++ b/application/hub/classes/producer/miner/blocks/class_BaseBlockProducer.php @@ -3,6 +3,7 @@ namespace Org\Shipsimu\Hub\Producer\Miner\Block; // Import application-specific stuff +use Org\Shipsimu\Hub\Producer\Miner\BaseMinerProducer; /** * A general BlockProducer class diff --git a/application/hub/classes/producer/miner/blocks/miner/class_MinerRealGenesisBlockProducer.php b/application/hub/classes/producer/miner/blocks/miner/class_MinerRealGenesisBlockProducer.php index 6d4420e53..0f272136e 100644 --- a/application/hub/classes/producer/miner/blocks/miner/class_MinerRealGenesisBlockProducer.php +++ b/application/hub/classes/producer/miner/blocks/miner/class_MinerRealGenesisBlockProducer.php @@ -4,8 +4,8 @@ namespace Org\Shipsimu\Hub\Miner\Producer\Miner\Block\Genesis; // Import application-specific stuff use Org\Shipsimu\Hub\Producer\BaseProducer; -use Org\Shipsimu\Hub\Producer\Block\BaseBlockProducer; use Org\Shipsimu\Hub\Producer\Block\BlockProducer; +use Org\Shipsimu\Hub\Producer\Miner\Block\BaseBlockProducer; // Import framework stuff use Org\Mxchange\CoreFramework\Factory\ObjectFactory; diff --git a/application/hub/classes/producer/miner/blocks/miner/class_MinerTestGenesisBlockProducer.php b/application/hub/classes/producer/miner/blocks/miner/class_MinerTestGenesisBlockProducer.php index f092c4647..67b69e29f 100644 --- a/application/hub/classes/producer/miner/blocks/miner/class_MinerTestGenesisBlockProducer.php +++ b/application/hub/classes/producer/miner/blocks/miner/class_MinerTestGenesisBlockProducer.php @@ -4,8 +4,8 @@ namespace Org\Shipsimu\Hub\miner\Producer\Miner\Block\Genesis; // Import application-specific stuff use Org\Shipsimu\Hub\Producer\BaseProducer; -use Org\Shipsimu\Hub\Producer\Block\BaseBlockProducer; use Org\Shipsimu\Hub\Producer\Block\BlockProducer; +use Org\Shipsimu\Hub\Producer\Miner\Block\BaseBlockProducer; // Import framework stuff use Org\Mxchange\CoreFramework\Factory\ObjectFactory; diff --git a/application/hub/classes/producer/miner/class_BaseMinerProducer.php b/application/hub/classes/producer/miner/class_BaseMinerProducer.php index 55365c43a..edb2e3d7e 100644 --- a/application/hub/classes/producer/miner/class_BaseMinerProducer.php +++ b/application/hub/classes/producer/miner/class_BaseMinerProducer.php @@ -5,6 +5,9 @@ namespace Org\Shipsimu\Hub\Producer\Miner; // Import application-specific stuff use Org\Shipsimu\Hub\Producer\BaseProducer; +// Import framework stuff +use Org\Mxchange\CoreFramework\Registry\GenericRegistry; + /** * A generic miner producer class * diff --git a/application/hub/classes/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php b/application/hub/classes/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php index a0607139a..6399eb73a 100644 --- a/application/hub/classes/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php +++ b/application/hub/classes/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php @@ -1,6 +1,6 @@