]> git.mxchange.org Git - core.git/blobdiff - framework/bootstrap/class_FrameworkBootstrap.php
Continued a bit:
[core.git] / framework / bootstrap / class_FrameworkBootstrap.php
index 000a2a9dde99952af94b2b053a5c7c4511d02883..0864970fd68d75490852bce15549e29e9c15242d 100644 (file)
@@ -282,10 +282,10 @@ final class FrameworkBootstrap {
                        // Determine if this file is wanted/readable/deprecated
                        if (($status == 'required') && (!self::isReadableFile($fqfn))) {
                                // Nope, required file cannot be found/read from
-                               ApplicationEntryPoint::app_exit(sprintf('Application "%s" does not have required file "%s.php". Please add it.', $application, $fileName));
+                               ApplicationEntryPoint::exitApplication(sprintf('Application "%s" does not have required file "%s.php". Please add it.', $application, $fileName));
                        } elseif ((file_exists($fqfn)) && (!is_readable($fqfn))) {
                                // Found, not readable file
-                               ApplicationEntryPoint::app_exit(sprintf('File "%s.php" from application "%s" cannot be read. Please fix CHMOD.', $fileName, $application));
+                               ApplicationEntryPoint::exitApplication(sprintf('File "%s.php" from application "%s" cannot be read. Please fix CHMOD.', $fileName, $application));
                        } elseif (($status != 'required') && (!self::isReadableFile($fqfn))) {
                                // Not found but optional/deprecated file, skip it
                                continue;
@@ -328,19 +328,19 @@ final class FrameworkBootstrap {
                // Some sanity checks
                if ((empty($applicationInstance)) || (is_null($applicationInstance))) {
                        // Something went wrong!
-                       ApplicationEntryPoint::app_exit(sprintf("[Main:] The application <span class=\"app_name\">%s</span> could not be launched because the helper class <span class=\"class_name\">%s</span> is not loaded.",
+                       ApplicationEntryPoint::exitApplication(sprintf("[Main:] The application <span class=\"app_name\">%s</span> could not be launched because the helper class <span class=\"class_name\">%s</span> is not loaded.",
                                $application,
                                'CoreFramework\Helper\Application\ApplicationHelper'
                        ));
                } elseif (!is_object($applicationInstance)) {
                        // No object!
-                       ApplicationEntryPoint::app_exit(sprintf("[Main:] The application <span class=\"app_name\">%s</span> could not be launched because &#39;app&#39; is not an object (%s).",
+                       ApplicationEntryPoint::exitApplication(sprintf("[Main:] The application <span class=\"app_name\">%s</span> could not be launched because &#39;app&#39; is not an object (%s).",
                                $application,
                                gettype($applicationInstance)
                        ));
                } elseif (!($applicationInstance instanceof ManageableApplication)) {
                        // Missing interface
-                       ApplicationEntryPoint::app_exit(sprintf("[Main:] The application <span class=\"app_name\">%s</span> could not be launched because &#39;app&#39; is lacking required interface ManageableApplication.",
+                       ApplicationEntryPoint::exitApplication(sprintf("[Main:] The application <span class=\"app_name\">%s</span> could not be launched because &#39;app&#39; is lacking required interface ManageableApplication.",
                                $application
                        ));
                }
@@ -451,7 +451,7 @@ final class FrameworkBootstrap {
                         * supported and only existed as an idea to select the proper
                         * application (by user).
                         */
-                       ApplicationEntryPoint::app_exit('No application specified. Please provide a parameter "app" and retry.');
+                       ApplicationEntryPoint::exitApplication('No application specified. Please provide a parameter "app" and retry.');
                } // END - if
 
                // Get it for local usage
@@ -475,7 +475,7 @@ final class FrameworkBootstrap {
                // Is the path there? This secures a bit the parameter (from untrusted source).
                if ((!is_dir($applicationPath)) || (!is_readable($applicationPath))) {
                        // Not found or not readable
-                       ApplicationEntryPoint::app_exit(sprintf('Application "%s" not found.', $application));
+                       ApplicationEntryPoint::exitApplication(sprintf('Application "%s" not found.', $application));
                } // END - if
 
                // Set the detected application's name and full path for later usage