From c9f10d588a76dc68f9d293e69548ba740119b8a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 19 Feb 2023 01:44:34 +0100 Subject: [PATCH] Continued: - method partialStub() has been moved to DebugMiddleware --- application/city/class_ApplicationHelper.php | 3 ++- application/city/classes/actions/class_ | 3 ++- application/city/classes/city_daemon/class_ | 7 ++++--- .../city/classes/city_daemon/class_BaseCityDaemon.php | 5 +++-- .../default/class_SimulationDefaultCityDaemon.php | 7 ++++--- .../filter/bootstrap/city_daemon/class_CityDaemonBootstrap | 3 ++- .../classes/filter/bootstrap/class_CityDaemonBootstrap | 3 ++- .../city/classes/filter/city_daemon/class_CityDaemon | 3 ++- application/city/classes/filter/class_ | 3 ++- .../classes/filter/shutdown/city/class_CityDaemonShutdown | 3 ++- .../city/classes/manager/city/class_CityManager.php | 3 ++- application/city/classes/tasks/daemon/class_CityDaemon | 3 ++- 12 files changed, 29 insertions(+), 17 deletions(-) diff --git a/application/city/class_ApplicationHelper.php b/application/city/class_ApplicationHelper.php index 3d9c194..68601c8 100644 --- a/application/city/class_ApplicationHelper.php +++ b/application/city/class_ApplicationHelper.php @@ -8,6 +8,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap; use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory; use Org\Mxchange\CoreFramework\Loader\ClassLoader; use Org\Mxchange\CoreFramework\Manager\ManageableApplication; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Registry\Registerable; use Org\Mxchange\CoreFramework\Template\CompileableTemplate; use Org\Mxchange\CoreFramework\Utils\Strings\StringUtils; @@ -197,7 +198,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication * @todo Nothing to add? */ public function assignExtraTemplateData (CompileableTemplate $templateInstance) { - $this->partialStub('Unfinished method. templateInstance=' . $templateInstance->__toString()); + DebugMiddleware::getSelfInstance()->partialStub('Unfinished method. templateInstance=' . $templateInstance->__toString()); } } diff --git a/application/city/classes/actions/class_ b/application/city/classes/actions/class_ index aaa7d34..5012a89 100644 --- a/application/city/classes/actions/class_ +++ b/application/city/classes/actions/class_ @@ -4,6 +4,7 @@ namespace Org\Mxchange\City\Action; // Import framework stuff use Org\Mxchange\CoreFramework\Controller\Controller; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Registry\Registerable; use Org\Mxchange\CoreFramework\Request\Requestable; use Org\Mxchange\CoreFramework\Response\Responseable; @@ -68,7 +69,7 @@ class ???Action extends BaseCityAction implements Commandable, Registerable { parent::execute($requestInstance, $responseInstance); // Add your code here - $this->partialStub("You have to implement me."); + DebugMiddleware::getSelfInstance()->partialStub("You have to implement me."); } /** diff --git a/application/city/classes/city_daemon/class_ b/application/city/classes/city_daemon/class_ index bf92a57..a909f85 100644 --- a/application/city/classes/city_daemon/class_ +++ b/application/city/classes/city_daemon/class_ @@ -7,6 +7,7 @@ use Org\Mxchange\City\Helper\CityHelper; // Import framework stuff use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Registry\Registerable; use Org\Mxchange\CoreFramework\Request\Requestable; @@ -71,7 +72,7 @@ class Simulation???CityDaemon extends BaseCity implements CityHelper, Registerab public function doBootstrapping () { // Call generic (parent) bootstrapping method first parent::doGenericBootstrapping(); - $this->partialStub('Please implement this method.'); + DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.'); } /** @@ -81,7 +82,7 @@ class Simulation???CityDaemon extends BaseCity implements CityHelper, Registerab * @todo Implement this method */ public function initQueues () { - $this->partialStub('Please implement this method.'); + DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.'); } /** @@ -101,6 +102,6 @@ class Simulation???CityDaemon extends BaseCity implements CityHelper, Registerab * @todo 0% done */ public function addExtraTasks (HandleableTask $handlerInstance) { - $this->partialStub('Please add some tasks or empty this method.'); + DebugMiddleware::getSelfInstance()->partialStub('Please add some tasks or empty this method.'); } } diff --git a/application/city/classes/city_daemon/class_BaseCityDaemon.php b/application/city/classes/city_daemon/class_BaseCityDaemon.php index 4fc9391..90e59b1 100644 --- a/application/city/classes/city_daemon/class_BaseCityDaemon.php +++ b/application/city/classes/city_daemon/class_BaseCityDaemon.php @@ -17,6 +17,7 @@ use Org\Mxchange\CoreFramework\Database\Updateable; use Org\Mxchange\CoreFramework\Factory\Database\Frontend\DatabaseFrontendFactory; use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory; use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Registry\GenericRegistry;; use Org\Mxchange\CoreFramework\Request\Requestable; use Org\Mxchange\CoreFramework\Response\Responseable; @@ -153,7 +154,7 @@ abstract class BaseCityDaemon extends BaseCitySystem implements Updateable, Adda */ public function updateDatabaseField ($fieldName, $fieldValue) { // Unfinished - $this->partialStub('Unfinished: fieldName=' . $fieldName . ',fieldValue=' . $fieldValue); + DebugMiddleware::getSelfInstance()->partialStub('Unfinished: fieldName=' . $fieldName . ',fieldValue=' . $fieldValue); return; // Get a critieria instance @@ -262,7 +263,7 @@ abstract class BaseCityDaemon extends BaseCitySystem implements Updateable, Adda * @todo 0% done */ public function bootstrapInitCityDaemon () { - $this->partialStub('Please add something here.'); + DebugMiddleware::getSelfInstance()->partialStub('Please add something here.'); } /** diff --git a/application/city/classes/city_daemon/default/class_SimulationDefaultCityDaemon.php b/application/city/classes/city_daemon/default/class_SimulationDefaultCityDaemon.php index a2c693a..dcfe726 100644 --- a/application/city/classes/city_daemon/default/class_SimulationDefaultCityDaemon.php +++ b/application/city/classes/city_daemon/default/class_SimulationDefaultCityDaemon.php @@ -10,6 +10,7 @@ use Org\Mxchange\City\Helper\CityHelper; use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory; use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask; use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Registry\GenericRegistry; use Org\Mxchange\CoreFramework\Registry\Registerable; use Org\Mxchange\CoreFramework\Request\Requestable; @@ -68,7 +69,7 @@ class SimulationDefaultCityDaemon extends BaseCityDaemon implements CityHelper, * @todo Implement this method */ public function doBootstrapping () { - $this->partialStub(); + DebugMiddleware::getSelfInstance()->partialStub(); } /** @@ -87,7 +88,7 @@ class SimulationDefaultCityDaemon extends BaseCityDaemon implements CityHelper, // @TODO $controllerInstance->addActivationFilter(ObjectFactory::createObjectByConfiguredName('city_foo_task_filter_class')); // @TODO Add some filters here - $this->partialStub('Add some filters here.'); + DebugMiddleware::getSelfInstance()->partialStub('Add some filters here.'); } /** @@ -98,6 +99,6 @@ class SimulationDefaultCityDaemon extends BaseCityDaemon implements CityHelper, * @todo 0% done */ public function addExtraTasks (HandleableTask $handlerInstance) { - $this->partialStub('Please add some tasks or empty this method.'); + DebugMiddleware::getSelfInstance()->partialStub('Please add some tasks or empty this method.'); } } diff --git a/application/city/classes/filter/bootstrap/city_daemon/class_CityDaemonBootstrap b/application/city/classes/filter/bootstrap/city_daemon/class_CityDaemonBootstrap index ca60462..f3b41ec 100644 --- a/application/city/classes/filter/bootstrap/city_daemon/class_CityDaemonBootstrap +++ b/application/city/classes/filter/bootstrap/city_daemon/class_CityDaemonBootstrap @@ -8,6 +8,7 @@ use Org\Mxchange\City\Filter\BaseCityFilter; // Import framework stuff use Org\Mxchange\CoreFramework\Filter\Filterable; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Request\Requestable; use Org\Mxchange\CoreFramework\Response\Responseable; @@ -70,6 +71,6 @@ class CityDaemonBootstrap???Filter extends BaseCityFilter implements Filterable $cityInstance = CityDaemonFactory::createCityDaemonInstance($requestInstance, $responseInstance); // Now do something - $this->partialStub('Please implement this step.'); + DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.'); } } diff --git a/application/city/classes/filter/bootstrap/class_CityDaemonBootstrap b/application/city/classes/filter/bootstrap/class_CityDaemonBootstrap index 18a179f..42db833 100644 --- a/application/city/classes/filter/bootstrap/class_CityDaemonBootstrap +++ b/application/city/classes/filter/bootstrap/class_CityDaemonBootstrap @@ -7,6 +7,7 @@ use Org\Mxchange\City\Filter\BaseCityFilter; // Import framework stuff use Org\Mxchange\CoreFramework\Filter\Filterable; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Registry\Registry; use Org\Mxchange\CoreFramework\Request\Requestable; use Org\Mxchange\CoreFramework\Response\Responseable; @@ -71,6 +72,6 @@ class CityDaemonBootstrap???Filter extends BaseCityFilter implements Filterable $cityInstance = Registry::getRegistry()->getInstance('city'); // Now do something - $this->partialStub('Please implement this step.'); + DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.'); } } diff --git a/application/city/classes/filter/city_daemon/class_CityDaemon b/application/city/classes/filter/city_daemon/class_CityDaemon index 7cad5a6..24cebdd 100644 --- a/application/city/classes/filter/city_daemon/class_CityDaemon +++ b/application/city/classes/filter/city_daemon/class_CityDaemon @@ -7,6 +7,7 @@ use Org\Mxchange\City\Filter\BaseCityFilter; // Import framework stuff use Org\Mxchange\CoreFramework\Filter\Filterable; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Request\Requestable; use Org\Mxchange\CoreFramework\Response\Responseable; @@ -66,6 +67,6 @@ class CityDaemon???Filter extends BaseCityFilter implements Filterable { */ public function execute (Requestable $requestInstance, Responseable $responseInstance) { // Implement this! - $this->partialStub('Please implement this method.'); + DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.'); } } diff --git a/application/city/classes/filter/class_ b/application/city/classes/filter/class_ index 854312f..3ae9fde 100644 --- a/application/city/classes/filter/class_ +++ b/application/city/classes/filter/class_ @@ -7,6 +7,7 @@ use Org\Mxchange\City\Filter\BaseCityFilter; // Import framework stuff use Org\Mxchange\CoreFramework\Filter\Filterable; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Registry\Registry; use Org\Mxchange\CoreFramework\Request\Requestable; use Org\Mxchange\CoreFramework\Response\Responseable; @@ -71,6 +72,6 @@ class City!!!???Filter extends BaseCityFilter implements Filterable { $cityInstance = Registry::getRegistry()->getInstance('city'); // Now do something - $this->partialStub('Please implement this step.'); + DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.'); } } diff --git a/application/city/classes/filter/shutdown/city/class_CityDaemonShutdown b/application/city/classes/filter/shutdown/city/class_CityDaemonShutdown index 2d77c20..3377eef 100644 --- a/application/city/classes/filter/shutdown/city/class_CityDaemonShutdown +++ b/application/city/classes/filter/shutdown/city/class_CityDaemonShutdown @@ -7,6 +7,7 @@ use Org\Mxchange\City\Filter\BaseCityFilter; // Import framework stuff use Org\Mxchange\CoreFramework\Filter\Filterable; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Registry\Registry; use Org\Mxchange\CoreFramework\Request\Requestable; use Org\Mxchange\CoreFramework\Response\Responseable; @@ -71,6 +72,6 @@ class CityDaemonShutdown???Filter extends BaseCityFilter implements Filterable { $cityInstance = Registry::getRegistry()->getInstance('city'); // Now do something - $this->partialStub('Please implement this step.'); + DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.'); } } diff --git a/application/city/classes/manager/city/class_CityManager.php b/application/city/classes/manager/city/class_CityManager.php index 7635b16..43a2b20 100644 --- a/application/city/classes/manager/city/class_CityManager.php +++ b/application/city/classes/manager/city/class_CityManager.php @@ -9,6 +9,7 @@ use Org\Mxchange\City\Factory\Manager\ManagerFactory; // Import framework stuff use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap; use Org\Mxchange\CoreFramework\Factory\Database\Frontend\DatabaseFrontendFactory; +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Request\Requestable; use Org\Mxchange\CoreFramework\Response\Responseable; @@ -135,6 +136,6 @@ class CityManager extends BaseManager implements ManageableCity { * @return void */ public function renderCityMap (HelpableTemplate $helperInstance) { - $this->partialStub('Please implement this method.'); + DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.'); } } diff --git a/application/city/classes/tasks/daemon/class_CityDaemon b/application/city/classes/tasks/daemon/class_CityDaemon index ed0789c..ef11a6e 100644 --- a/application/city/classes/tasks/daemon/class_CityDaemon +++ b/application/city/classes/tasks/daemon/class_CityDaemon @@ -3,6 +3,7 @@ namespace Org\Mxchange\City\Daemon\Task\; // Import framework stuff +use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware; use Org\Mxchange\CoreFramework\Task\BaseTask; use Org\Mxchange\CoreFramework\Task\Taskable; use Org\Mxchange\CoreFramework\Visitor\Visitable; @@ -73,7 +74,7 @@ class CityDaemon???Task extends BaseTask implements Taskable, Visitable { * @todo 0% done */ public function executeTask () { - $this->partialStub('Unimplemented task.'); + DebugMiddleware::getSelfInstance()->partialStub('Unimplemented task.'); } /** -- 2.39.5