Continued: - added more debug lines - commented some out again
Continued: - exit; means normal exit of program
Please cherry-pick: - updated copyright year Signed-off-by: Roland Häder <roland@mxchange.org>
Please cherry-pick: - described an if() block why and when that condition may happen (rarely seen) Signed-off-by: Roland Häder <roland@mxchange.org>
Continued: - made ClassLoader final as no inheriting classes shall be made (it is generic enough) - renamed ClassLoader->$foundClasses to $pendingFiles as this describes the content of the array more closely - removed some old-lost "// END - if" (WAY more to follow!) Signed-off-by: Roland Häder <roland@mxchange.org>
Continued: - renamed BaseStacker/BaseFileStack->addValue() to addValueToStack() - added more debug lines - added more parameter validation - updated index.php Signed-off-by: Roland Häder <roland@mxchange.org>
Continued: - moved ObjectFactory into deeper package Signed-off-by: Roland Häder <roland@mxchange.org>
Continued: - updated index.php - PHP_Invoker is now with a namespace, so no need for disabling strict naming-convention check - removed some old END - * - renamed configuration entries 'detect_*' to '__detect_*' as they are dummies - maybe later get rid of them as the configuration class seem to be "abused" here a bit - converted old array() to "new" [] Signed-off-by: Roland Häder <roland@mxchange.org>
Continued: - rewrote deprecated DEVELOPER constant to developer_mode_enabled configuration entry - added missing "import" line for exception Signed-off-by: Roland Häder <roland@mxchange.org>
Copyright: - updated older copyright years Signed-off-by: Roland Häder <roland@mxchange.org>
Continued: - no need to handle $applicationInstance around as it exists in GenericRegister already - please update your index.php to this Signed-off-by: Roland Häder <roland@mxchange.org>
Continued: - added Org\Nxchange\ namespace followwing Java convention Signed-off-by: Roland Häder <roland@mxchange.org>
Rewrite: - the configuration instance is now instanciated by FrameworkBootstrap::getConfigurationInstance(), this *may* has made it sure that the class FrameworkConfiguration can be fully covered by unit tests. - still a call-back instance test is pending Signed-off-by: Roland Häder <roland@mxchange.org>
Continued: - rewrote some parts of the class loader to e.g. avoid loading full lust into variable and then only decode it - renamed shortended variables - cut a very long variable down a bit (one word) - ignored all logfiles in root directory Signed-off-by: Roland Häder <roland@mxchange.org>
Continued a bit: - renamed method app_exit() to exitApplication(), still it needs rewritings - rewrote a bit searching for framework files, also check __DIR__ from index.php to find it Signed-off-by: Roland Häder <roland@mxchange.org>
getResponseInstance is now located in FrameworkBootstrap Signed-off-by: Roland Häder <roland@mxchange.org>
imported FileNotFoundException Signed-off-by: Roland Häder <roland@mxchange.org>
Rewrite continued: - the framework now attempts to initialize the application more OOP-ed - this is done by calling 3 simple methods: + FrameworkBootstrap::initFramework(); + FrameworkBootstrap::prepareApplication(); + FrameworkBootstrap::startApplication(); - initFramework: 3 simple steps again: + scanFrameworkClasses: scans for framework-related classes, interfaces and exceptions + determineRequestType: determines request-type (console, html) and loads all given parameter into the initialized request class. It also initializes the response instance + validateApplicationParameter: validates the parameter 'app' if it is there and points to a valid application (very basic check, more later on) - prepareApplication: Prepares detected application by attempting to load all required include files and only optional if present. Please note that some files are now deprecated and should be ported to the new methods (see below) - startApplication: Starts the application by calling 3 methods: + setupApplicationData: replacement for data.php, sets all application's data. Please don't set any configuration stuff here, this is still done in config.php! + initApplication: Calls some additional methods to initialize application. Here is a good place to init database instance by calling the shiny new method initDatabaseInstance(). + launchApplication: Still old method name which starts the application. Please remove any request/response-init stuff from here as it is now generically done in FrameworkBootstrap - include files in framework/database/ are now all deprecated - renamed framework/config.inc.php -> framework/config-global.php - PrimeraPortal's API is history, so let us remove the obsolete file here, too - some "contrib" files updated - updated TODOs.txt - moved rand.php to contrib/ folder Signed-off-by: Roland Häder <roland@mxchange.org>
renamed to parseParameters() as this method will parse, not just check all parameters, including $_GET, $_POST and $_COOKIE/$_SESSION Signed-off-by: Roland Häder <roland@mxchange.org>
Continued: - renamed BootstrapFramework -> FrameworkBootstrap as there are also similar classes around, like FrameworkConfiguration - require/include are no functions, don't use parentheses here (including old tests, I know) - continued with rewriting bootstrap: more methods in FrameworkBootstrap and lesser include files in framework/ path Signed-off-by: Roland Häder <roland@mxchange.org>