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 ebe8e44..4ad3e41 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 4c89159..8f42032 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 093d329..3109fb1 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 f0e935e..1e83aef 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 870b7d9..cdd1b59 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\FileSystem;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index d34b1f2..0978156 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Filesystem\Pointer\Input;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index 879f60f..2b2704e 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Filesystem\Pointer\Input;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index 056fa30..d7f8ef7 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Filesystem\Pointer;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index 6b39bb5..98782b9 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 b17e346..1d3ae08 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 6cc7831..ce5ee9d 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 192a51a..1368fdb 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 a190af6..c56706e 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 2f0e6ba..ee6e54f 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 6740d0c..fefa280 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 c35d2f5..372bd47 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 20c36dc..181248f 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 f85adbb..464e266 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 f775a4c..ff003f6 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 08120e3..b5dce66 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 a2e22c6..9e7617f 100644 (file)
@@ -3,6 +3,7 @@
 namespace CoreFramework\Registry;
 
 // Import framework stuff
+use CoreFramework\Generic\NullPointerException;
 use CoreFramework\Object\BaseFrameworkSystem;
 
 /**
index 049fa1a..e7a5fd7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace CoreFramework\Streams;
+namespace CoreFramework\Stream;
 
 // Import framework stuff
 use CoreFramework\Generic\FrameworkInterface;
index 0207ef9..33149b2 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 846b5a7..c847a70 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 f8d607f..179ef16 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 eca786c..5416df5 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);