]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Thu, 23 Feb 2017 20:31:28 +0000 (21:31 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 28 Feb 2017 21:10:04 +0000 (22:10 +0100)
- added "import" for Streamable + fixed namespace, no plural
- added "import" for OutputStreamer
- added "import" for NullPointerException + thrown one in middleware

Signed-off-by: Roland Häder <roland@mxchange.org>
26 files changed:
inc/config/class_FrameworkConfiguration.php
inc/main/classes/class_BaseFrameworkSystem.php
inc/main/classes/commands/html/class_HtmlConfirmCommand.php
inc/main/classes/database/frontend/class_UserDatabaseWrapper.php
inc/main/classes/file_directories/class_BaseFileIo.php
inc/main/classes/file_directories/input/raw/class_FrameworkRawFileInputPointer.php
inc/main/classes/file_directories/input/text/class_FrameworkTextFileInputPointer.php
inc/main/classes/file_directories/io/class_FrameworkFileInputOutputPointer.php
inc/main/classes/file_directories/output/raw/class_FrameworkRawFileOutputPointer.php
inc/main/classes/file_directories/output/text/class_FrameworkTextFileOutputPointer.php
inc/main/classes/filter/payment/class_PaymentDiscoveryFilter.php
inc/main/classes/helper/class_BaseHelper.php
inc/main/classes/helper/html/forms/class_HtmlFormHelper.php
inc/main/classes/helper/html/links/class_HtmlLinkHelper.php
inc/main/classes/mailer/debug/class_DebugMailer.php
inc/main/classes/output/console/class_ConsoleOutput.php
inc/main/classes/output/debug/console/class_DebugConsoleOutput.php
inc/main/classes/output/debug/error/class_DebugErrorLogOutput.php
inc/main/classes/output/debug/web/class_DebugWebOutput.php
inc/main/classes/output/web/class_WebOutput.php
inc/main/classes/registry/class_BaseRegistry.php
inc/main/interfaces/io/class_Streamable.php
inc/main/interfaces/io/class_StreamableInput.php
inc/main/interfaces/io/class_StreamableOutput.php
inc/main/interfaces/io/file/class_FileOutputStreamer.php
inc/main/middleware/debug/class_DebugMiddleware.php

index ebe8e4456ca8a5b410936f079b864b7f35df7b37..4ad3e41791abb4c6ac1aeea02eb9f8671d52188f 100644 (file)
@@ -4,6 +4,7 @@ namespace CoreFramework\Configuration;
 
 // Import framework stuff
 use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Registry\Registerable;
 
 /**
index 4c891596964ad8dbb1fcaa0e577a4b71e2e3e708..8f42032ff98dcdfc3c624c4e67fdcbc075d9a311 100644 (file)
@@ -6,11 +6,13 @@ namespace CoreFramework\Object;
 use CoreFramework\Configuration\FrameworkConfiguration;
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Loader\ClassLoader;
 use CoreFramework\Manager\ManageableApplication;
 use CoreFramework\Middleware\Debug\DebugMiddleware;
 use CoreFramework\Registry\Register;
 use CoreFramework\Registry\Generic\Registry;
+use CoreFramework\Stream\Output\OutputStreamer;
 use CoreFramework\Template\CompileableTemplate;
 
 // Import SPL stuff
index 093d329b5201722a81e9e67b130118444d506f61..3109fb1ce7cbfd4a5ad9bd10749ed724df0adcf8 100644 (file)
@@ -4,6 +4,7 @@ namespace CoreFramework\Command\Guest;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Registry\Generic\Registry;
 
 /**
index f0e935edf391e410676fa8c4bdac0996bc7a49a9..1e83aefea04b42ce04d10d1b82fbf12e409d809d 100644 (file)
@@ -4,6 +4,7 @@ namespace CoreFramework\Database\Wrapper\User;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Registry\Registerable;
 
 /**
index 870b7d904c3d78992c7095d1a5801d6bda327489..cdd1b592bf95f36f938e6990296d8368e511f315 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\FileSystem;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index d34b1f24a61b98aac27cc96b5928e2bdd4a31e04..09781562c632f431b00caf77f159826ae3d471e9 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Filesystem\Pointer\Input;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index 879f60febfd701034b54d107f4bfc1fe0609d5f2..2b2704e28312ec2e63e24578ce128c5eedd0c8f2 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Filesystem\Pointer\Input;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index 056fa30fcd012b3e8369d3de8d03291dc1042ad5..d7f8ef742b3d6af8775f79321df6933fe8e0700b 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Filesystem\Pointer;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index 6b39bb5298df83788653f06bb208993fdb954195..98782b961172e0c7678ba8aecd77a3e1d39e36ca 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace CoreFramework\Filesystem\Pointer\Raw;
 
+// Import framework stuff
+use CoreFramework\Generic\NullPointerException;
+
 /**
  * A class for writing files
  *
index b17e3464764c7b07a53399e423cf627fd8420daa..1d3ae08bd65ec2a6853af6b2aa435cf975e75932 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace CoreFramework\Filesystem\Pointer\Text;
 
+// Import framework stuff
+use CoreFramework\Generic\NullPointerException;
+
 /**
  * A class for writing files
  *
index 6cc7831333b9650c8dac7f4d73ed91822c3b8749..ce5ee9de657ffdb71e60222f29ab7f4d6f540b8c 100644 (file)
@@ -4,6 +4,7 @@ namespace CoreFramework\Filter\Discovery\Payment;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Registry\Generic\Registry;
 
 /**
index 192a51a1cbb8b05f1748bbc2b212838c76af5c6c..1368fdb72709a02c1bcd4c19e20d9d1e3cee4336 100644 (file)
@@ -5,6 +5,7 @@ namespace CoreFramework\Helper;
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Generic\FrameworkInterface;
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 use CoreFramework\Registry\Generic\Registry;
 
index a190af63d6da1191fe0881c4ec50b7149426053e..c56706e3b65e00f9763ce687fa55f93a14fdcee1 100644 (file)
@@ -4,6 +4,7 @@ namespace CoreFramework\Helper;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Registry\Generic\Registry;
 use CoreFramework\Template\CompileableTemplate;
 
index 2f0e6bafec4593f548c71a5d9bcbd808fede2ad2..ee6e54ff006069e0ec5265a162f494d093edd637 100644 (file)
@@ -4,6 +4,7 @@ namespace CoreFramework\Helper;
 
 // Import framework stuff
 use CoreFramework\Configuration\FrameworkConfiguration;
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Registry\Generic\Registry;
 use CoreFramework\Template\CompileableTemplate;
 
index 6740d0cab65f48aa0bc88fc1dd25c5bd454ecffa..fefa2800214ce7c76e5b5b3e9ada135bfb5ab499 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Mailer\Debug;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Manager\ManageableApplication;
 use CoreFramework\Template\CompileableTemplate;
 
@@ -102,7 +103,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
                                        // Is the value instance there?
                                        if (!isset($recipientList['values'][$variable])) {
                                                // Throw exception
-                                               throw new NullPointerException ($this, self::EXCEPTION_IS_NULL_POINTER);
+                                               throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
                                        } // END - if
 
                                        // Get the field from the value instance
index c35d2f58951b89850ab00f76ec68a1159b55a62f..372bd47d5cd52ed6e217508718c188f4e8e9da24 100644 (file)
@@ -5,6 +5,7 @@ namespace CoreFramework\Output;
 // Import framework stuff
 use CoreFramework\Configuration\FrameworkConfiguration;
 use CoreFramework\Output\BaseOutput;
+use CoreFramework\Stream\Output\OutputStreamer;
 
 /**
  * This class simply puts text without any HTML code out. This class is suiable
index 20c36dc8677823ba08d7ea2043a9fac642e67c9d..181248fec47507b2b233ee7803f1ec2fef602d96 100644 (file)
@@ -6,6 +6,7 @@ namespace CoreFramework\Debug\Output;
 use CoreFramework\Debug\Debugger;
 use CoreFramework\Output\Debug\BaseDebugOutput;
 use CoreFramework\Registry\Registerable;
+use CoreFramework\Stream\Output\OutputStreamer;
 
 /**
  * A debug output class for the console (e.g. hub software)
index f85adbbc92441209a65b1f62299bf1da8739d58d..464e266d6fd11ebb82d89c65b21ae3cff9a3e306 100644 (file)
@@ -5,6 +5,7 @@ namespace CoreFramework\Output\Debug;
 // Import framework stuff
 use CoreFramework\Debug\Debugger;
 use CoreFramework\Output\Debug\BaseDebugOutput;
+use CoreFramework\Stream\Output\OutputStreamer;
 
 /**
  * A debug output class for PHP's error_log() command
index f775a4c991601b0ce662cbe6481f61ee983c2002..ff003f663ae0bac714befaac0c5397e74ff0c082 100644 (file)
@@ -5,6 +5,7 @@ namespace CoreFramework\Output\Debug;
 // Import framework stuff
 use CoreFramework\Debug\Debugger;
 use CoreFramework\Output\Debug\BaseDebugOutput;
+use CoreFramework\Stream\Output\OutputStreamer;
 
 /**
  * A debug output class for the web browser
index 08120e3c516adb19271828c9baada567b7a8a3e4..b5dce66894699fe856647b3fda6ca5a0f736842f 100644 (file)
@@ -6,6 +6,7 @@ namespace CoreFramework\Output;
 use CoreFramework\Manager\ManageableApplication;
 use CoreFramework\Output\BaseOutput;
 use CoreFramework\Registry\Registerable;
+use CoreFramework\Stream\Output\OutputStreamer;
 
 /**
  * This class simply puts HTML code / JavaScript code or CSS code out to the
index a2e22c66e2425bddf1938ec772334b3de2915c1f..9e7617f4e9253dfc42c2d13cb9c062cb7bfc28d5 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Registry;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index 049fa1a3ca5308b6125ea7119323702353bd3d69..e7a5fd78b1d6d0b4601ae031d9122816dd2b02b7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace CoreFramework\Streams;
+namespace CoreFramework\Stream;
 
 // Import framework stuff
 use CoreFramework\Generic\FrameworkInterface;
index 0207ef9c25095306a9535d5044ba2c4c094c733e..33149b240dbfcf038111e620d472bf4c84d83d65 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace CoreFramework\Stream\Input;
 
+// Import framework stuff
+use CoreFramework\Stream\Streamable;
+
 /**
  * An interface for input streams
  *
index 846b5a71d1437f786aeeaa6384014c881ce4f2f0..c847a7073d203f5e56bd9578ab8b957f8badcde2 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace CoreFramework\Stream\Output;
 
+// Import framework stuff
+use CoreFramework\Stream\Streamable;
+
 /**
  * An interface for output streams
  *
index f8d607f3b02c84614be9d89427c3471acc8aeff1..179ef161bd44ab3abf28bbd9f3f5bd27fdc50fcc 100644 (file)
@@ -2,6 +2,9 @@
 // Own namespace
 namespace CoreFramework\Filesystem\Stream;
 
+// Import framework stuff
+use CoreFramework\Stream\Output\OutputStreamer;
+
 /**
  * An interface for file output operations.
  *
index eca786cdca12bc302c45a1fe02d01e764caa5d49..5416df5d6f99bb2614a241748b4096164fd98746 100644 (file)
@@ -4,8 +4,10 @@ namespace CoreFramework\Middleware\Debug;
 
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Middleware\BaseMiddleware;
 use CoreFramework\Registry\Registerable;
+use CoreFramework\Stream\Output\OutputStreamer;
 
 /**
  * The middlware debug output system. A *real* or concrete output class shall
@@ -125,7 +127,10 @@ class DebugMiddleware extends BaseMiddleware implements Registerable {
                if (empty($outStream)) {
                        // @TODO Initialization phase
                        return;
-               } // END - if
+               } elseif (is_null($this->getOutputInstance())) {
+                       // Should not be NULL
+                       throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
+               }
 
                // Use the output instance
                $this->getOutputInstance()->outputStream($outStream, $stripTags);