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
Roland Häder [Thu, 1 Aug 2019 05:02:17 +0000 (07:02 +0200)]
Continued:
- updated copyright year (code was really updated there but not the year
itself)
- __call() does now finally show proper class name and only 'unknown' when
self::$instance is not set (which must be an instance of FrameworkInterface
for an obvious reason ...)
Roland Häder [Sat, 14 Apr 2018 20:37:49 +0000 (22:37 +0200)]
Continued:
- moved convertDashesToUnderscores to new StringUtils class
- this class now needs to be loaded "manually"
- cleaned up .htaccess files where they are really not needed
Roland Häder [Fri, 13 Apr 2018 23:37:57 +0000 (01:37 +0200)]
Continued:
- rewrote ObjectFactory for some performance improvement, yet still more needs
to be done, maybe some static "cache" array and then use reflection to clean
up old instance?
- debug messages are now "hidden" in HTML comment blocks
- InvalidClassNameException is now emptied and InvalidArgumentException is used
instead
Roland Häder [Wed, 11 Apr 2018 20:34:53 +0000 (22:34 +0200)]
Continued:
- initWebOutputInstance() cannot be invoked in construction time of response as
the application instance is not yet created there, need to invoke
initWebOutputInstance() after the application instance has been created
Roland Häder [Wed, 11 Apr 2018 04:33:01 +0000 (06:33 +0200)]
Continued:
- ApplicationHelper needs to expand BaseApplication to have "self-registration"
generically done
- so no more need to register 'application' instance everywhere else, just here
Roland Häder [Tue, 6 Mar 2018 21:55:16 +0000 (22:55 +0100)]
Continued:
- need to invoke $responseInstance->initWebOutputInstance() to initialize the
web output instance, but not in console responses ... The old-lost code at
my shipping-company simulator did this.
Roland Häder [Tue, 6 Mar 2018 21:49:02 +0000 (22:49 +0100)]
Continued:
- $databaseInstance is now moved to FrameworkBootstrap as the old getter/setter
were using registry pattern, then a getter invocation to check if the
instance has already been set will result to an NPE as getInstance() makes
this sure
Roland Häder [Sat, 20 Jan 2018 17:49:03 +0000 (18:49 +0100)]
Continued:
- created more namespaces
- "imported" more classes/interfaces
- need to require_once, some strange (?) double-load may happen when phpunit is
running
- sorted members a bit