Roland Häder [Sat, 25 Feb 2023 06:51:20 +0000 (07:51 +0100)]
Continued:
- na, I don't like these multiple-type variables from PHP ...
- it surely later needs rewrite to array-only return values or exceptions in
case of errors
- also fixed issue here
Roland Häder [Sat, 25 Feb 2023 02:27:31 +0000 (03:27 +0100)]
Continued:
- added more debug message
- FrameworkConfiguration cannot invoke methods from StringUtils while debug
lines are active:
---------------
PHP Fatal error: Uncaught Error: Class
'Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware' not found in
/home/.../core/framework/main/classes/class_BaseFrameworkSystem.php:623
---------------
Roland Häder [Wed, 22 Feb 2023 02:28:06 +0000 (03:28 +0100)]
Continued:
- introduced ConsoleTools::acquireHostname() which acquires own host's name
- some methods of ConsoleTools are now "caching" their being "expensively"
determined and then returned values
- added more unit tests
- added more debug lines
Roland Häder [Sat, 18 Feb 2023 22:46:28 +0000 (23:46 +0100)]
Continued:
- rewrote logger system away from monolithic methods in BaseFrameworkSystem
class which later allows more "backend" loggers being supported
- DebugMiddleware::output() is now private
Roland Häder [Fri, 17 Feb 2023 23:52:54 +0000 (00:52 +0100)]
Continued:
- removed .htaccess files and added .gitkeep, you have to make this now sure by
yourself
- developer_mode_enabled renamed to is_developer_mode_enabled and invoked method
isEnabled() instead
- fixed writing class/list cache files
- more debug lines added
Roland Häder [Fri, 17 Feb 2023 18:03:23 +0000 (19:03 +0100)]
Continued:
- removed .htaccess file, please protect applications/, db/, framework/ by
yourself
- this makes this script more independent from the used web server
Roland Häder [Wed, 15 Feb 2023 20:40:30 +0000 (21:40 +0100)]
Continued:
- added method FrameworkConfiguration::isEnabled() which requires configuration
keys like 'is_foo_enabled' while you can just invoke
$configInstance->isEnabled('foo')
- Added some debug lines
- added missing configuration entries
- Configuration entries like is_<form-name>_captcha_secured_enabled are still missing
Roland Häder [Fri, 10 Feb 2023 16:13:02 +0000 (17:13 +0100)]
Continued:
- empty($element) is the culpit here, '0' will be FALSE, 0 will be false and
all needs to be true, so let's check $element === '' and it is solved
Roland Häder [Fri, 10 Feb 2023 15:57:00 +0000 (16:57 +0100)]
Continued:
- thanks to type-hints, I was able to find out that
appendStringToGenericArrayElement() was invoked wrong here, it must be
setGenericArrayElement() instead which makes sense from addCriteria()
method's scope
Roland Häder [Thu, 16 Dec 2021 11:52:42 +0000 (12:52 +0100)]
Continued:
- Better check against SplFileObject instead of is_object(). First one is a
keyword (instanceof), later is a function call
- More debug logging
- Added missing "import" lines
- Replaced more array() with []
Roland Häder [Sun, 12 Dec 2021 09:09:22 +0000 (10:09 +0100)]
Continued:
- "cached" more configuration entries to class fields to avoid "expensive"
invocations on FrameworkConfiguration->getConfigEntries()
- rewrote some "soft" assertions to hard exceptions as this cannot be let through
Roland Häder [Sun, 12 Dec 2021 07:44:25 +0000 (08:44 +0100)]
Continued:
- "cached" configuration entry 'developer_mode_enabled' and
'debug_*_output_timings' into class fields to avoid "expensive" calls all over
again to FrameworkConfiguration->getConfigEntry()
Roland Häder [Sun, 12 Dec 2021 06:30:30 +0000 (07:30 +0100)]
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!)
Roland Häder [Sat, 11 Dec 2021 23:18:41 +0000 (00:18 +0100)]
Continued:
- StringUtils::convertToClassName() is now "in-method cached". That means that
the parameter $str is used as key and the value is being generated when the
key does not exist in self::$cache array
Roland Häder [Sat, 11 Dec 2021 23:13:14 +0000 (00:13 +0100)]
Continued:
- moved getCacheKeyByCriteria() to BaseDatabaseFrontend class, maybe not the
final resting place, but better than in the generic, bloated
BaseFrameworkSystem class
- Introduced BaseXmlTemplateEngine->$initMethodName to avoid an additional
invocation of StringUtils::convertToClassName() on each invocation of
startElement()
Roland Häder [Sat, 11 Dec 2021 21:47:55 +0000 (22:47 +0100)]
Continued:
- invoking ksort() by every invocation of setConfigEntry() is very "expensive"
as sorting arrays take time. Better is to load all configuration files and
then sort it only once.