Roland Häder [Sun, 6 Dec 2020 09:32:52 +0000 (10:32 +0100)]
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" []
Roland Häder [Sun, 6 Dec 2020 07:48:31 +0000 (08:48 +0100)]
Continued:
- Application instance in generic registry was a little of an overdoze when
there is ApplicationHelper::getSelfInstance() around, this means lesser
method invocations and a bit smaller footprint (one registry entry lesser)
Roland Häder [Sat, 5 Dec 2020 23:56:23 +0000 (00:56 +0100)]
Continued:
- validated more parameters to avoid bad invocation with invalid values
- int $bytes = NULL was my default, SPL says 0, not NULL as default value
- improved logger messages by adding type and all parameters
Roland Häder [Sat, 5 Dec 2020 22:24:29 +0000 (23:24 +0100)]
Continued:
- renamed some namespaces
- renamed BaseFileStack::ARRAY_INDEX_* to ARRAY_NAME_* as these constants
contain names and not numbers
- also moved them to interface StackableFile
Roland Häder [Thu, 3 Dec 2020 20:48:15 +0000 (21:48 +0100)]
Continued:
- logging __METHOD__ + __LINE__ again is no more needed since rewrite of logger
- possible fix for wrong valid() result (was FALSE while there was one entry
there)
Roland Häder [Wed, 2 Dec 2020 05:16:36 +0000 (06:16 +0100)]
Refacuring:
- removed CacheFactory, is already reduced to what
ObjectFactory::createObjectByConfiguredName() does
- external $cache, $compressorChannel and $ioHandler as traits
- added type-hints for primitive variables
Roland Häder [Tue, 1 Dec 2020 23:36:50 +0000 (00:36 +0100)]
Continued:
- Removed monolithic BaseFrameworkSystem->flushPendingUpdates()
- REFACTURING: moved some instances to traits, will continue with other
instances after these have been tested
Roland Häder [Tue, 24 Nov 2020 08:19:31 +0000 (09:19 +0100)]
Continued:
- WIP: ops, stack file and its index file were accidentally mixed into the
stack which has caused reading errors. Still position 4 is written
- added/commented in more noisy debug lines
- added primitive type-hints
Roland Häder [Tue, 24 Nov 2020 03:14:09 +0000 (04:14 +0100)]
Continued:
- moved language instance methods from monolithic and wrong registry-usage to
FrameworkBootstrap
- added type-hints for primitive variables (also maybe in last 3 commits)
Roland Häder [Tue, 24 Nov 2020 02:23:38 +0000 (03:23 +0100)]
Continued:
- moved $searchInstance + getter/setter from monolithic BaseFrameworkSystem to
proper classes/interfaces
- moved interfaces in own sub directories and not "extended"
Roland Häder [Tue, 24 Nov 2020 02:07:26 +0000 (03:07 +0100)]
Continued:
- moved $updateInstance and getter/setter to proper BaseDatabaseResult class
- renamed $class to $className
- removed __CLASS__ as default value from any abstract class' constructor
Roland Häder [Sun, 22 Nov 2020 16:53:01 +0000 (17:53 +0100)]
Continued:
- fixed resolving order:
1) application's controller will be checked
2) the application "tests" need its own default news controller
3) else load framework's default news controller
Roland Häder [Sun, 15 Nov 2020 02:04:56 +0000 (03:04 +0100)]
Continued with chash:
- hashing was to fast, commented out very noisy debug lines
- also flushing was to often now, now every 10 seconds and on finding a new block
Roland Häder [Sat, 7 Nov 2020 20:59:42 +0000 (21:59 +0100)]
Continued:
- let's get rid of own ObjectFactory::createObjectByName() construct and use the
flexible (configurable) ObjectFactory::createObjectByConfiguredName() approach
Roland Häder [Sat, 7 Nov 2020 19:51:28 +0000 (20:51 +0100)]
Continued:
- rewrote template engine initialization:
+ BaseFrameworkSystem->initTemplateEngine() was monolithic and can be done in
BaseCommand class
+ the template engine's type is determined by system (console, html, image,
...) for the command
Roland Häder [Sat, 7 Nov 2020 15:58:33 +0000 (16:58 +0100)]
Continued:
- removed $databaseInstance, $compressorInstance from BaseFrameworkSystem as
this was no longer used
- moved $compressorChannel to proper class
Roland Häder [Sat, 7 Nov 2020 14:46:02 +0000 (15:46 +0100)]
Continued:
- moved class StringUtils to deeper package, needs updating ApplicationHelper!
- moved some methods from monolithic class BaseFrameworkSystem to StringUtils
Roland Häder [Sat, 7 Nov 2020 12:50:56 +0000 (13:50 +0100)]
Continued:
- BaseFrameworkSystem-><get|set>ConfigInstance() was deprecated and no
longer working since below rewrite happened. It was also slow and unneccessary
as FrameworkBootstrap::getConfigurationInstance() does the same
- moved $registryInstance and getter/setter to RegistryIterator (only place)
- moved $commandName / $controllerName and getter/setter to proper resolver
classes
Roland Häder [Sat, 7 Nov 2020 12:17:51 +0000 (13:17 +0100)]
Continued:
- moved class fields from ApplicationHelper to BaseApplication class as all
application "helper" (manager) will have these fields
- moved $controllerInstance to proper classes
Roland Häder [Sat, 7 Nov 2020 11:58:16 +0000 (12:58 +0100)]
Continued:
- moved $fileIoInstance and $resolverInstance to proper classes, avoiding
monolithic BaseFrameworkSystem class
- the goal is to reduce all class fields with getter/setter
- also added type-hints for primitive variables