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

42 files changed:
application/tests/class_ApplicationHelper.php
framework/main/classes/actions/class_
framework/main/classes/class_BaseFrameworkSystem.php
framework/main/classes/commands/class_
framework/main/classes/commands/console/class_Console
framework/main/classes/commands/console/class_ConsoleFuseCommand.php
framework/main/classes/commands/html/class_Html
framework/main/classes/commands/html/class_HtmlProblemCommand.php
framework/main/classes/discovery/class_
framework/main/classes/feature/class_
framework/main/classes/feature/fuse/class_FuseFeature.php
framework/main/classes/file_directories/binary/class_BaseBinaryFile.php
framework/main/classes/file_directories/io_stream/class_FileIoStream.php
framework/main/classes/filter/change/class_EmailChangeFilter.php
framework/main/classes/filter/change/class_PasswordChangeFilter.php
framework/main/classes/filter/class_
framework/main/classes/filter/verifier/class_EmailVerifierFilter.php
framework/main/classes/helper/captcha/class_
framework/main/classes/helper/html/class_
framework/main/classes/images/png/class_PngImage.php
framework/main/classes/iterator/class_
framework/main/classes/lists/class_
framework/main/classes/lists/groups/class_ListGroupList.php
framework/main/classes/mailer/class_
framework/main/classes/output/class_
framework/main/classes/parser/xml/class_XmlParser.php
framework/main/classes/registry/format_upgrade/database/class_LocalFileDatabaseFormatUpgradeRegistry.php
framework/main/classes/request/class_
framework/main/classes/response/console/class_ConsoleResponse.php
framework/main/classes/response/html/class_HtmlResponse.php
framework/main/classes/response/image/class_ImageResponse.php
framework/main/classes/stacker/class_
framework/main/classes/stacker/file/class_
framework/main/classes/stacker/file/class_BaseFileStack.php
framework/main/classes/stacker/file/fifo/class_FiFoFileStack.php
framework/main/classes/tasks/class_
framework/main/classes/template/image/class_ImageTemplateEngine.php
framework/main/middleware/debug/class_DebugMiddleware.php
framework/main/middleware/io/class_FileIoHandler.php
framework/main/tests/filter/tests/class_Tests
framework/main/tests/filter/tests/configuration/class_TestConfiguration
framework/main/tests/filter/tests/requirements/class_TestsPhpRequirementsFilter.php

index f84fe3c54331d756af074ad6b821e719c81f4ffa..3d531efd40dc34f20f27eaf9ef6efb398f188cbf 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;
@@ -192,7 +193,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 ed34a50d646cc14ead686407aa84720e06136ba8..80eefba526d1ba3fb83526a59478a15ad57c2290 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Action\!!!;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Action\BaseAction;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 /**
  * An action for ???
@@ -60,7 +61,7 @@ class ???Action extends BaseAction implements Commandable {
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               $this->partialStub("You have to implement me.");
+               DebugMiddleware::getSelfInstance()->partialStub("You have to implement me.");
        }
 
 }
index 3920db4cfd52c89dbf75b43bbc79643128bce04f..dc2410c324d9991d2e8a4b91f5a4c7c791cd87e7 100644 (file)
@@ -400,7 +400,7 @@ abstract class BaseFrameworkSystem extends stdClass implements FrameworkInterfac
         * @return      void
         */
        public final function setDebugInstance (DebugMiddleware $debugInstance) {
-               GenericRegistry::getRegistry()->addInstance('debug', $debugInstance);
+               self::$debugInstance = $debugInstance;
        }
 
        /**
@@ -543,33 +543,6 @@ Loaded includes:
                ));
        }
 
-       /**
-        * Output a partial stub message for the caller method
-        *
-        * @param       $message        An optional message to display
-        * @return      void
-        */
-       protected function partialStub (string $message = '') {
-               // Init variable
-               $stubMessage = 'Partial stub!';
-
-               // Is an extra message given?
-               if (!empty($message)) {
-                       // Then add it as well
-                       $stubMessage .= ' Message: ' . $message;
-               }
-
-               // Debug instance is there?
-               if (!is_null($this->getDebugInstance())) {
-                       // Output stub message
-                       self::createDebugInstance(__CLASS__, __LINE__)->warningMessage($stubMessage);
-               } else {
-                       // Trigger an error
-                       trigger_error($stubMessage);
-                       exit(255);
-               }
-       }
-
        /**
         * Outputs a debug backtrace and stops further script execution
         *
@@ -845,7 +818,7 @@ Loaded includes:
                        }
                } else {
                        // @TODO Finish this part!
-                       $this->partialStub('Developer mode inactive. Message:' . $message);
+                       DebugMiddleware::getSelfInstance()->partialStub('Developer mode inactive. Message:' . $message);
                }
        }
 
index cf160ac3a9ae104bca412c65ea2cc96477281d70..195b0b02754014216921d2771b2b8cc104c65b39 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
 /**
  * 
  *
@@ -57,7 +60,7 @@ class ???Command extends BaseCommand implements Commandable {
         * @return      void
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               $this->partialStub('Unfinished!');
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished!');
        }
 
        /**
@@ -68,7 +71,7 @@ class ???Command extends BaseCommand implements Commandable {
         * @return      void
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
-               $this->partialStub('Unfinished!');
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished!');
        }
 
 }
index 6318963c9c037821371a061380e5797bf06645ed..e2bb4de34d36be66ab8a9fd03c35817be66722cd 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
 /**
  * A ??? console command
  *
@@ -57,7 +60,7 @@ class Console???Command extends BaseCommand implements Commandable {
         * @return      void
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               $this->partialStub('Unfinished!');
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished!');
        }
 
        /**
@@ -68,7 +71,7 @@ class Console???Command extends BaseCommand implements Commandable {
         * @return      void
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
-               $this->partialStub('Unfinished!');
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished!');
        }
 
 }
index 84a8f0814e03e1fc3116baab79c4a863803d74f2..c8061ffcc295b9766e2911fe23d6ad28c1e602c2 100644 (file)
@@ -7,6 +7,7 @@ use Org\Mxchange\CoreFramework\Command\BaseCommand;
 use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Feature\FrameworkFeature;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -82,7 +83,7 @@ class ConsoleFuseCommand extends BaseCommand implements Commandable {
                }
 
                // @TODO Unfinished
-               $this->partialStub('Still unfinished! ;-)');
+               DebugMiddleware::getSelfInstance()->partialStub('Still unfinished! ;-)');
        }
 
        /**
index 06f4923cfaa2bc8e48bd3a9a15cd056a3f5c1ff3..2db86e39dc4af02f0af76e960da64f3895eceabd 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
 /**
  * A command for ??? page
  *
@@ -58,7 +61,7 @@ class Html???Command extends BaseCommand implements Commandable {
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               $this->partialStub('Unfinished method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished method.');
        }
 
        /**
index ce132366e4fe3a5f25ca54f87035069431e23a58..1b876f7b8577def99ccbc0f790633aaeb988869c 100644 (file)
@@ -6,6 +6,7 @@ namespace Org\Mxchange\CoreFramework\Command\Failed;
 use Org\Mxchange\CoreFramework\Command\BaseCommand;
 use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
@@ -70,7 +71,7 @@ class HtmlProblemCommand extends BaseCommand implements Commandable {
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               $this->partialStub('Unfinished method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished method.');
        }
 
        /**
index b4a7a343e6addbbd2115c85d3af3af1a6a97f75b..6209f5f83eb50da7c0984a3ecf7db48e9ce298c5 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Disovery\;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Helper\Template\HelpableTemplate;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 /**
  * A ??? discovery class.
@@ -59,7 +60,7 @@ class ???Discovery extends BaseDiscovery implements Discoverable {
         * @todo        0% done
         */
        public function discover (Requestable $requestInstance) {
-               $this->partialStub("Please implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
        }
 
        /**
@@ -70,7 +71,7 @@ class ???Discovery extends BaseDiscovery implements Discoverable {
         * @todo        0% done
         */
        public function addResultsToHelper (HelpableTemplate $helperInstance) {
-               $this->partialStub("Please implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
        }
 
 }
index 85aa1b1fc66ea7668652a9632806a83d33503db1..4cad8ab6a5205248dad79889d83a9cc45a6e46aa 100644 (file)
@@ -5,6 +5,7 @@ namespace Org\Mxchange\CoreFramework\Feature\!!!;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Feature\BaseFeature;
 use Org\Mxchange\CoreFramework\Feature\Feature;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 /**
  * A ??? feature class
@@ -63,7 +64,7 @@ class ???Feature extends BaseFeature implements Feature {
                $isAvailable = false;
 
                // Unfinished:
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
 
                // Return status
                return $isAvailable;
index fcc98b59fd50e67109d3efce9846d3e1d9c6c9ed..fb039d416199d496b5dcf7a52ecad53386b7ab42 100644 (file)
@@ -5,6 +5,7 @@ namespace Org\Mxchange\CoreFramework\Feature\Fuse;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Feature\BaseFeature;
 use Org\Mxchange\CoreFramework\Feature\Feature;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 /**
  * A FUSE feature class
@@ -63,7 +64,7 @@ class FuseFeature extends BaseFeature implements Feature {
                $isAvailable = false;
 
                // Unfinished:
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
 
                // Return status
                return $isAvailable;
index c214d9628577d3e0adc1c9b5521d33f85519aaba..0885e338ca03681f3b4cd9955a3441e714aa751e 100644 (file)
@@ -9,6 +9,7 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filesystem\File\BaseAbstractFile;
 use Org\Mxchange\CoreFramework\Filesystem\FilePointer;
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Traits\Index\IndexableTrait;
 use Org\Mxchange\CoreFramework\Traits\Stack\StackableTrait;
 
@@ -1028,7 +1029,7 @@ abstract class BaseBinaryFile extends BaseAbstractFile implements BinaryFile {
                }
 
                // @TODO Unfinished
-               $this->partialStub('length=' . $length);
+               DebugMiddleware::getSelfInstance()->partialStub('length=' . $length);
        }
 
 }
index a0fb8e049ec0199c1dd380a77c2c010422e39830..126ab896865eba20f2b1254fc22fb5d7b45813c3 100644 (file)
@@ -8,6 +8,7 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filesystem\FileNotFoundException;
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 use Org\Mxchange\CoreFramework\Stream\Filesystem\FileInputStreamer;
 use Org\Mxchange\CoreFramework\Stream\Filesystem\FileOutputStreamer;
@@ -323,7 +324,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
         * @todo        0% done
         */
        public function determineSeekPosition () {
-               $this->partialStub();
+               DebugMiddleware::getSelfInstance()->partialStub();
        }
 
        /**
@@ -334,7 +335,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
         * @return      $status         Status of file seek: 0 = success, -1 = failed
         */
        public function seek (int $offset, int $whence = SEEK_SET) {
-               $this->partialStub('offset=' . $offset . ',whence=' . $whence);
+               DebugMiddleware::getSelfInstance()->partialStub('offset=' . $offset . ',whence=' . $whence);
        }
 
        /**
@@ -343,7 +344,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
         * @return      $size   Size (in bytes) of file
         */
        public function size () {
-               $this->partialStub();
+               DebugMiddleware::getSelfInstance()->partialStub();
        }
 
 }
index a2de4bbd222af18e79147aa3a90833aecae914a7..a8411e705b9f90ef5d7f8c5667031b55b20d8a8c 100644 (file)
@@ -6,6 +6,7 @@ namespace Org\Mxchange\CoreFramework\Filter\Change\Email;
 use Org\Mxchange\CoreFramework\Filter\BaseFilter;
 use Org\Mxchange\CoreFramework\Filter\Chain\FilterChainException;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
+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;
@@ -125,7 +126,7 @@ class EmailChangeFilter extends BaseFilter implements Filterable {
                }
 
                // Update the "new_email" field
-               $this->partialStub('Unfinished part.');
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished part.');
        }
 
 }
index ff67434cd8819ec261f5617897c23adad9915f68..7eaaa2ee0bc14e17e01803bb7bb8ed20e4b8b131 100644 (file)
@@ -6,6 +6,7 @@ namespace Org\Mxchange\CoreFramework\Filter\Change\Password;
 use Org\Mxchange\CoreFramework\Filter\BaseFilter;
 use Org\Mxchange\CoreFramework\Filter\Chain\FilterChainException;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
+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;
@@ -117,7 +118,7 @@ class PasswordChangeFilter extends BaseFilter implements Filterable {
                $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                // Update the "password" field
-               $this->partialStub('Unfinished part.');
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished part.');
        }
 
 }
index 70073f0415745fd1d854cff4d742f7445ef268ea..13011f2c74f488b45927049524be3cab25c096ad 100644 (file)
@@ -5,6 +5,7 @@ namespace \Filter\;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\BaseFilter;
 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;
 
@@ -65,7 +66,7 @@ class ???Filter extends BaseFilter 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 c014b5b749954891db9c9f07709ebd2dbcb5974a..08bb8beed8267da70fb199fce1c9dec92a2ec2b7 100644 (file)
@@ -6,6 +6,7 @@ namespace Org\Mxchange\CoreFramework\Filter\Verifier\Email;
 use Org\Mxchange\CoreFramework\Filter\BaseFilter;
 use Org\Mxchange\CoreFramework\Filter\Chain\FilterChainException;
 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,7 +67,7 @@ class EmailVerifierFilter extends BaseFilter 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 776e2c0bd578da570a34c1b4aa4ec6b497379a64..1e9e9da7d272def5061261f1a76ecefdc886eda1 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Captcha\;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 /**
  * A solveable CAPTCHA
@@ -66,7 +67,7 @@ class ???Captcha extends BaseCaptcha implements SolveableCaptcha {
         * @todo        0% done
         */
        public function initiateCaptcha () {
-               $this->partialStub("Please implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
        }
 
        /**
@@ -76,7 +77,7 @@ class ???Captcha extends BaseCaptcha implements SolveableCaptcha {
         * @todo        0% done
         */
        public function renderCode () {
-               $this->partialStub("Please implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
        }
 
 }
index 164852f95149ba2d65e34596d04addea42087c47..224fb18565f9fc0d094e3a157a71d8ca7b9cfae5 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Helper\;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Helper\Template\HelpableTemplate;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 /**
  * 
@@ -74,7 +75,7 @@ class Html???Helper extends BaseHtmlHelper implements HelpableTemplate {
         * @todo        0% done
         */
        public function flushContent () {
-               $this->partialStub("Please implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
        }
 
 }
index f5f54cf11d09c4e8b37ef66dcc42abdd1b7f563c..4dcc9d3dd7946de590557ca9115ae09d80f2235b 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Image;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 // Import SPL stuff
@@ -69,7 +70,7 @@ class PngImage extends BaseImage {
         * @todo Rewrite this to SplFileInfo/Object
         */
        public function finishImage () {
-               $this->partialStub('Unfinished method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Unfinished method.');
                return;
 
                // Call parent method
index cc7292b38885bc36d7948635b5726dc4376bdf04..d08a1d90400f76376655fa091cdbd77e309c6c0b 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Iterator\!!!;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 // Import SPL stuff
 use \Iterator;
@@ -63,7 +64,7 @@ class ???Iterator extends BaseIterator implements Iterator {
                // Default is null
                $current = null;
 
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
 
                // Return it
                return $current;
@@ -78,7 +79,7 @@ class ???Iterator extends BaseIterator implements Iterator {
                // Default is null
                $key = null;
 
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
 
                // Return it
                return $key;
@@ -90,7 +91,7 @@ class ???Iterator extends BaseIterator implements Iterator {
         * @return      void
         */
        public function next () {
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
        /**
@@ -99,7 +100,7 @@ class ???Iterator extends BaseIterator implements Iterator {
         * @return      void
         */
        public function rewind () {
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
        /**
@@ -108,7 +109,7 @@ class ???Iterator extends BaseIterator implements Iterator {
         * @return      void
         */
        public function valid () {
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
 }
index 69590fba4e78a162675929a5588670a03ef13241..93cc43ddad82967780a7dffcbeb050ebd513ffc5 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
 /**
  * A ??? list
  *
@@ -52,7 +55,7 @@ class ???List extends BaseList implements Listable {
         * @todo        0% done
         */
        public function getListIterator () {
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
        /**
@@ -62,7 +65,7 @@ class ???List extends BaseList implements Listable {
         * @todo        0% done
         */
        public function clearList () {
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
 }
index 03568f404035771ce4d6f3e9881f90b8a60c5efb..8f3f6ac5a765faa53d4fa4d8ac55c62e75366ce7 100644 (file)
@@ -5,6 +5,7 @@ namespace Org\Mxchange\CoreFramework\Lists\Group;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Lists\BaseList;
 use Org\Mxchange\CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 /**
  * A ListGroup list
@@ -68,7 +69,7 @@ class ListGroupList extends BaseList implements Listable {
         * @todo        0% done
         */
        public function clearList () {
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
 }
index ab5ed827e742942caf2d6aee7fec7aeee14eacda..55b566a36e5019c2de8461a7842f579ccb105f8f 100644 (file)
@@ -5,6 +5,7 @@ namespace Org\Mxchange\CoreFramework\Mailer\!!!;
 // Import framwork stuff
 use Org\Mxchange\CoreFramework\Mailer\BaseMailer;
 use Org\Mxchange\CoreFramework\Mailer\DeliverableMail;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 /**
  * A ??? mailer class
@@ -59,7 +60,7 @@ class ???Mailer extends BaseMailer implements DeliverableMail {
         * @todo        0% done
         */
        public function deliverEmail() {
-               $this->partialStub("You have to implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("You have to implement this method.");
        }
 
        /**
@@ -69,7 +70,7 @@ class ???Mailer extends BaseMailer implements DeliverableMail {
         * @todo        0% done
         */
        public function sendAdminNotification() {
-               $this->partialStub("You have to implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("You have to implement this method.");
        }
 
 }
index 2420d7e86c4a2f0d78393cf4745898d85fd45bd3..84b7d53dd215256e589d80f4b5f3ee955b900b3a 100644 (file)
@@ -5,6 +5,7 @@ namespace Org\Mxchange\CoreFramework\Output\;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 
 /**
  * A ??? output class
@@ -79,7 +80,7 @@ class ???Output extends BaseOutput implements OutputStreamer, Registerable {
         * @todo        0% done
         */
        public final function output ($outStream = false, $stripTags = false) {
-               $this->partialStub('Please implement this method. outStream()=' . strlen($outStream) . ',stripTags=' . intval($stripTags));
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method. outStream()=' . strlen($outStream) . ',stripTags=' . intval($stripTags));
        }
 
        /**
index af036ab2c14b482353e7fb2478315fbb9779d009..7b09884e3d00fb75d1e33bac5185a97e70c35954 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Parser\Xml;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Parser\BaseParser;
 use Org\Mxchange\CoreFramework\Parser\Parseable;
 use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
@@ -82,7 +83,7 @@ class XmlParser extends BaseParser implements Parseable {
                        $content = mb_convert_encoding($content, 'UTF-8', 'auto');
                } else {
                        // @TODO We need to find a fallback solution here
-                       $this->partialStub('Cannot find recode/mbstring extension!');
+                       DebugMiddleware::getSelfInstance()->partialStub('Cannot find recode/mbstring extension!');
                }
 
                // Get an XML parser
index 3196108d8f20c96a4a95f6f5e21af36dc9be3262..c40b19a893df221e645ba2856bc8041a173e312b 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Mxchange\CoreFramework\Registry\Upgrade\Format\Lfdb;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Registry\BaseRegistry;
 use Org\Mxchange\CoreFramework\Upgrade\Format\Database\UpgradeableDatabaseFormat;
 use Org\Mxchange\CoreFramework\Upgrade\Format\RegisterableFormatUpgrade;
@@ -70,7 +71,7 @@ class LocalFileDatabaseFormatUpgradeRegistry extends BaseRegistry implements Reg
         * @todo        0% done
         */
        public function registerFormatUpgrader (UpgradeableDatabaseFormat $upgradeInstance) {
-               $this->partialStub();
+               DebugMiddleware::getSelfInstance()->partialStub();
        }
 
 }
index c24fa32b9b62b92d146836216bbfde2b3ce59256..c4ab6a908ef0a39f616b572762879d4d5aefcada 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace Org\Mxchange\CoreFramework\Request;
 
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
 /**
  * A concrete request class
  *
@@ -58,7 +61,7 @@ class ???Request extends BaseRequest implements Requestable {
         * @todo        Needs to be implemented
         */
        protected function prepareRequestData () {
-               $this->partialStub("Please implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
        }
 
        /**
@@ -68,7 +71,7 @@ class ???Request extends BaseRequest implements Requestable {
         * @return      $headerValue    Value of the header or 'null' if not found
         */
        public function getHeaderElement ($headerName) {
-               $this->partialStub("Please implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
        }
 
        /**
@@ -77,7 +80,7 @@ class ???Request extends BaseRequest implements Requestable {
         * @return      $requestMethod  Used request method
         */
        public final function getRequestMethod () {
-               $this->partialStub("Please implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
                return $_SERVER['REQUEST_METHOD'];
        }
 
@@ -88,7 +91,7 @@ class ???Request extends BaseRequest implements Requestable {
         * @return      $cookieValue    Value of cookie or null if not found
         */
        public final function readCookie ($cookieName) {
-               $this->partialStub("Please implement this method.");
+               DebugMiddleware::getSelfInstance()->partialStub("Please implement this method.");
        }
 
 }
index 7a3fd3bc35ecd959495c1b0d88bd9e3b421cfd87..4cb10564e10ca4a2ec8bc90b35ab3a30490bc106 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Response;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
@@ -70,7 +71,7 @@ class ConsoleResponse extends BaseResponse implements Responseable {
         */
        public function addCookie (string $cookieName, $cookieValue, bool $encrypted = FALSE, int $expires = NULL) {
                //* DEBUG: */ echo $cookieName.'='.$cookieValue."<br />\n";
-               $this->partialStub('Naturally unimplemented in console response.');
+               DebugMiddleware::getSelfInstance()->partialStub('Naturally unimplemented in console response.');
        }
 
        /**
@@ -82,7 +83,7 @@ class ConsoleResponse extends BaseResponse implements Responseable {
         * @throws      ResponseHeadersAlreadySentException             If headers are already sent
         */
        public function redirectToConfiguredUrl ($configEntry) {
-               $this->partialStub('Naturally unimplemented in console response.');
+               DebugMiddleware::getSelfInstance()->partialStub('Naturally unimplemented in console response.');
        }
 
        /**
@@ -92,7 +93,7 @@ class ConsoleResponse extends BaseResponse implements Responseable {
         * @return      void
         */
        public function expireCookie ($cookieName) {
-               $this->partialStub('Naturally unimplemented in console response.');
+               DebugMiddleware::getSelfInstance()->partialStub('Naturally unimplemented in console response.');
        }
 
        /**
@@ -102,7 +103,7 @@ class ConsoleResponse extends BaseResponse implements Responseable {
         * @return      void
         */
        public function refreshCookie ($cookieName) {
-               $this->partialStub('Naturally unimplemented in console response.');
+               DebugMiddleware::getSelfInstance()->partialStub('Naturally unimplemented in console response.');
        }
 
        /**
@@ -114,7 +115,7 @@ class ConsoleResponse extends BaseResponse implements Responseable {
         * @throws      ResponseHeadersAlreadySentException             Thrown if headers are already sent
         */
        public function flushBuffer ($force = false) {
-               $this->partialStub('Please implement this class.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this class.');
        }
 
 }
index 76cd50d0425bf828a22c19e053efccb905c2ac20..b81a30a9f84f6ce187a078b76d529917fc1020ab 100644 (file)
@@ -6,6 +6,7 @@ namespace Org\Mxchange\CoreFramework\Response;
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -86,7 +87,7 @@ class HtmlResponse extends BaseResponse implements Responseable {
                // Shall we encrypt the cookie?
                if ($encrypted) {
                        // Unsupported at the moment
-                       $this->partialStub('Encryption is unsupported at the moment.');
+                       DebugMiddleware::getSelfInstance()->partialStub('Encryption is unsupported at the moment.');
                }
 
                // For slow browsers set the cookie array element first
index 496cb8f9b57be6cbfaa4768c14a7434f233160d7..aa25d792eb981e273b16dcc8016b73bbcc8e2f70 100644 (file)
@@ -7,6 +7,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Image\BaseImage;
 use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -109,7 +110,7 @@ class ImageResponse extends BaseResponse implements Responseable {
                // Shall we encrypt the cookie?
                if ($encrypted) {
                        // Unsupported at the moment
-                       $this->partialStub('Encryption is unsupported at the moment.');
+                       DebugMiddleware::getSelfInstance()->partialStub('Encryption is unsupported at the moment.');
                }
 
                // For slow browsers set the cookie array element first
index 80d4931831b4062049f52869acaad39518a8f4a9..b8e5aa096b202144ac1750f549d4edcf26ab2b2e 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Mxchange\CoreFramework\Stack\!!!;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Stack\BaseStacker;
 use Org\Mxchange\CoreFramework\Stack\Stackable;
 
@@ -65,7 +66,7 @@ class ???Stacker extends BaseStacker implements Stackable {
         * @throws      StackerFullException    If the stack is full
         */
        public function pushNamed ($stackerName, $value) {
-               $this->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value);
+               DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value);
        }
 
        /**
@@ -77,7 +78,7 @@ class ???Stacker extends BaseStacker implements Stackable {
         * @throws      EmptyStackerException   If the named stacker is empty
         */
        public function popNamed ($stackerName) {
-               $this->partialStub('stackerName=' . $stackerName);
+               DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
        }
 
        /**
@@ -89,7 +90,7 @@ class ???Stacker extends BaseStacker implements Stackable {
         * @throws      EmptyStackerException   If the named stacker is empty
         */
        public function getNamed ($stackerName) {
-               $this->partialStub('stackerName=' . $stackerName);
+               DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
        }
 
 }
index ec7961cac6dfcf3070c58dfddab4254eca3147e9..091d752601158452d3ce2a9ef31aa9ecb085917a 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+
 /**
  * A ??? file-based stack
  *
@@ -58,7 +61,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @throws      StackerFullException    If the stack is full
         */
        public function pushNamed ($stackerName, $value) {
-               $this->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value);
+               DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value);
        }
 
        /**
@@ -70,7 +73,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @throws      EmptyStackerException   If the named stacker is empty
         */
        public function popNamed ($stackerName) {
-               $this->partialStub('stackerName=' . $stackerName);
+               DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
        }
 
        /**
@@ -82,7 +85,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @throws      EmptyStackerException   If the named stacker is empty
         */
        public function getNamed ($stackerName) {
-               $this->partialStub('stackerName=' . $stackerName);
+               DebugMiddleware::getSelfInstance()->partialStub('stackerName=' . $stackerName);
        }
 
        /**
@@ -92,7 +95,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @return      void
         */
        public function seek ($seekPosition) {
-               $this->partialStub('seekPosition=' . $seekPosition);
+               DebugMiddleware::getSelfInstance()->partialStub('seekPosition=' . $seekPosition);
        }
 
        /**
@@ -101,7 +104,7 @@ class ???FileStack extends BaseFileStack implements StackableFile, Registerable
         * @return      $size   Size (in bytes) of file
         */
        public function size () {
-               $this->partialStub();
+               DebugMiddleware::getSelfInstance()->partialStub();
        }
 
 }
index 3697394752ab2b13166d6e74424d850d2ced1946..573403dd27506e14ea7417735dea00fdbd82d239 100644 (file)
@@ -9,6 +9,7 @@ use Org\Mxchange\CoreFramework\Filesystem\File\BaseBinaryFile;
 use Org\Mxchange\CoreFramework\Filesystem\File\BinaryFile;
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Stack\BaseStacker;
 use Org\Mxchange\CoreFramework\Traits\Index\IndexableTrait;
 use Org\Mxchange\CoreFramework\Traits\Iterator\IteratorTrait;
@@ -364,7 +365,7 @@ abstract class BaseFileStack extends BaseStacker {
                }
 
                // Now get the last value
-               /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+               /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
                $value = NULL;
 
                // Return it
@@ -392,7 +393,7 @@ abstract class BaseFileStack extends BaseStacker {
                }
 
                // Now get the first value
-               /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+               /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
                $value = NULL;
 
                // Return it
@@ -420,7 +421,7 @@ abstract class BaseFileStack extends BaseStacker {
                }
 
                // Now, remove the last entry, we don't care about the return value here, see elseif() block above
-               /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+               /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
                return NULL;
        }
 
@@ -444,7 +445,7 @@ abstract class BaseFileStack extends BaseStacker {
                }
 
                // Now, remove the last entry, we don't care about the return value here, see elseif() block above
-               /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+               /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
                return NULL;
        }
 
@@ -464,7 +465,7 @@ abstract class BaseFileStack extends BaseStacker {
                }
 
                // @TODO Please implement this, returning false
-               /* NOISY-DEBUG: */ $this->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
+               /* NOISY-DEBUG: */ DebugMiddleware::getSelfInstance()->partialStub('[' . __METHOD__ . ':' . __LINE__ . '] stackerName=' . $stackerName);
                $isFull = false;
 
                // Return result
index 7e5bb5f8f566045dfb08cd6906d8668156ddac9e..3c291361d5ee1e1052c54bd75676bd8f10395c72 100644 (file)
@@ -5,6 +5,7 @@ namespace Org\Mxchange\CoreFramework\Stack\File;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filesystem\Block\CalculatableBlock;
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Stack\File\BaseFileStack;
 use Org\Mxchange\CoreFramework\Stack\File\StackableFile;
@@ -175,7 +176,7 @@ class FiFoFileStack extends BaseFileStack implements StackableFile, Calculatable
                }
 
                // @TODO Unfinished method or invoke inner iterator's method?
-               $this->partialStub('seekPosition=' . $seekPosition);
+               DebugMiddleware::getSelfInstance()->partialStub('seekPosition=' . $seekPosition);
 
                // Trace message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('FIFO-FILE-STACK: EXIT!');
index e06e577f7adbb13d7de1463cbc1ff2fba88ee407..efce727eb2beedfd70f8da46ae70a7a090f2cd13 100644 (file)
@@ -3,6 +3,7 @@
 namespace Tld\Domain\Project\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 !!!???Task extends BaseTask implements Taskable, Visitable {
         * @todo        0%
         */
        public function executeTask () {
-               $this->partialStub('Unimplemented task.');
+               DebugMiddleware::getSelfInstance()->partialStub('Unimplemented task.');
        }
 
        /**
index 4faba021327890aded38ecca6f2b974bf02e0570..e24d8cac936f2011ed2a76aa0900f99fc4222431 100644 (file)
@@ -8,6 +8,7 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filesystem\InvalidDirectoryException;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Image\BaseImage;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Parser\Parseable;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -265,7 +266,7 @@ class ImageTemplateEngine extends BaseTemplateEngine implements CompileableTempl
                }
 
                // Unfinished work!
-               $this->partialStub('Handling extra characters is not yet supported!');
+               DebugMiddleware::getSelfInstance()->partialStub('Handling extra characters is not yet supported!');
        }
 
        /**
index d4ff279a0074f696ac8b25fdd2ce035922af2f5a..959c9272e74f3009905c7dd52341a4260e5209cf 100644 (file)
@@ -268,6 +268,30 @@ class DebugMiddleware extends BaseMiddleware implements Registerable {
                //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__);
        }
 
+       /**
+        * Output a partial stub message for the caller method
+        *
+        * @param       $message        An optional message to display
+        * @return      void
+        */
+       public function partialStub (string $message = '') {
+               // Init variable
+               //* NOISY-DEBUG: */ printf('[%s:%d]: message=%s - CALLED!' . PHP_EOL, __METHOD__, __LINE__, $message);
+               $stubMessage = 'Partial stub!';
+
+               // Is an extra message given?
+               if (!empty($message)) {
+                       // Then add it as well
+                       $stubMessage .= ' Message: ' . $message;
+               }
+
+               // Output stub message
+               $this->output($stubMessage);
+
+               // Trace message
+               //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__);
+       }
+
        /**
         * Outputs a debug message whether to debug instance (should be set!) or
         * dies with or ptints the message. Do NEVER EVER rewrite the exit() call to
index 1f40fba89926c1204b1d6d5959a9618fb6ac40e0..7658aa0de08b9cdc47d6374f3b5cfaddd0cc4fd9 100644 (file)
@@ -8,6 +8,7 @@ use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Handler\Stream\IoHandler;
 use Org\Mxchange\CoreFramework\Middleware\BaseMiddleware;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Traits\Streamer\File\Input\FileInputStreamerTrait;
 use Org\Mxchange\CoreFramework\Traits\Streamer\File\Output\FileOutputStreamerTrait;
 
@@ -169,7 +170,7 @@ class FileIoHandler extends BaseMiddleware implements IoHandler {
        public function determineSeekPosition () {
                // Trace message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: CALLED!');
-               $this->partialStub();
+               DebugMiddleware::getSelfInstance()->partialStub();
 
                // Trace message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: EXIT!');
@@ -192,7 +193,7 @@ class FileIoHandler extends BaseMiddleware implements IoHandler {
                }
 
                // @TODO Unfinished work
-               $this->partialStub('offset=' . $offset . ',whence=' . $whence);
+               DebugMiddleware::getSelfInstance()->partialStub('offset=' . $offset . ',whence=' . $whence);
 
                // Trace message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: EXIT!');
@@ -209,7 +210,7 @@ class FileIoHandler extends BaseMiddleware implements IoHandler {
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: CALLED!');
 
                // @TODO: Unfinished method:
-               $this->partialStub();
+               DebugMiddleware::getSelfInstance()->partialStub();
 
                // Trace message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: EXIT!');
@@ -226,7 +227,7 @@ class FileIoHandler extends BaseMiddleware implements IoHandler {
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: CALLED!');
 
                // @TODO: Unfinished method:
-               $this->partialStub();
+               DebugMiddleware::getSelfInstance()->partialStub();
 
                // Trace message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('FILE-IO-HANDLER: EXIT!');
index 3777af64fa1bce79f728511483cae0aa4bf93e3b..ed4ff6d5377ecdcda790b75aae069751b63350dd 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Tests\Filter\!!!;
 
 // 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;
 use Org\Mxchange\CoreFramework\Tests\Filter\BaseTestsFilter;
@@ -64,7 +65,7 @@ class Tests???Filter extends BaseTestsFilter 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 435416a51afe4250d029c00df2200e4a29671830..f32054390f7520e4b803065db925426736c2c8e0 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Tests\Filter\Configuration\!!!;
 
 // 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;
 use Org\Mxchange\CoreFramework\Tests\Filter\BaseTestsFilter;
@@ -64,7 +65,7 @@ class TestConfiguration???Filter extends BaseTestsFilter 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 f9cbdb87dce1053690fa390c1ccc8ac5eb37cf80..f390e7f469696d5252ba257fbebca9785393c76b 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Tests\Filter\Requirements;
 
 // 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;
 use Org\Mxchange\CoreFramework\Tests\Filter\BaseTestsFilter;
@@ -64,7 +65,7 @@ class TestsPhpRequirementsFilter extends BaseTestsFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Implement this!
-               $this->partialStub('Please implement this method.');
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
 }