]> git.mxchange.org Git - city.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 19 Feb 2023 00:44:34 +0000 (01:44 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 19 Feb 2023 00:44:34 +0000 (01:44 +0100)
- method partialStub() has been moved to DebugMiddleware

12 files changed:
application/city/class_ApplicationHelper.php
application/city/classes/actions/class_
application/city/classes/city_daemon/class_
application/city/classes/city_daemon/class_BaseCityDaemon.php
application/city/classes/city_daemon/default/class_SimulationDefaultCityDaemon.php
application/city/classes/filter/bootstrap/city_daemon/class_CityDaemonBootstrap
application/city/classes/filter/bootstrap/class_CityDaemonBootstrap
application/city/classes/filter/city_daemon/class_CityDaemon
application/city/classes/filter/class_
application/city/classes/filter/shutdown/city/class_CityDaemonShutdown
application/city/classes/manager/city/class_CityManager.php
application/city/classes/tasks/daemon/class_CityDaemon

index 3d9c194a25253fe45a2a9f4cdb3a3a71defa6538..68601c8dfc6ab252530028061e8e5e92a59a28b1 100644 (file)
@@ -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());
        }
 
 }
index aaa7d344be3f6fb1c79e5ecc25ca9865f2ab6498..5012a89f76802234bc318952ea3c693860910d5c 100644 (file)
@@ -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.");
        }
 
        /**
index bf92a57d2557f40db3a50d68a99a2a8e357e9e10..a909f857da432fb52526d0380459d30d9ba3ecb6 100644 (file)
@@ -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.');
        }
 }
index 4fc93914967cd05adec359b23319f80ab73f9b7b..90e59b147bc1cdada7dd046606952e97b999592a 100644 (file)
@@ -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.');
        }
 
        /**
index a2c693a35d53e6cb1ef8937a9e43eb9c2014b05f..dcfe72600b15d63da08535fe74f00229724627dc 100644 (file)
@@ -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.');
        }
 }
index ca6046261967df9d083c805c49c1d70d3763550f..f3b41ec388be5b4c64d92fb3f5a9c39ea75ef300 100644 (file)
@@ -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.');
        }
 }
index 18a179f6f095b2fc93f73d9f2b8951da94cde853..42db833de237e7796b66abee6739f6a40bda2db0 100644 (file)
@@ -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.');
        }
 }
index 7cad5a6e6789289aca2bcfb3af83f6d33da7e85c..24cebdddd456f2938693e3a26814862a3361bd39 100644 (file)
@@ -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.');
        }
 }
index 854312f4a6ac609651470ae1b3a4f6665ec580b1..3ae9fdeb2bfa261b738f99a5b38a0b7964af89c7 100644 (file)
@@ -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.');
        }
 }
index 2d77c2045648766f58610e228555847677ebf5b2..3377eef2e37df9c62780c5baf327ee4ebd7a2dd4 100644 (file)
@@ -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.');
        }
 }
index 7635b16e48269b993a9d0e338991bc29b6b015b3..43a2b20770973a77a8bb75154827472d06daccb3 100644 (file)
@@ -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.');
        }
 }
index ed0789cd1f3c66cf8a646dda7f82c82608b09063..ef11a6e504d6c5147aa031d55cf2f307e0c366ba 100644 (file)
@@ -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.');
        }
 
        /**