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
Roland Haeder [Wed, 26 Oct 2016 23:41:01 +0000 (01:41 +0200)]
Some updates:
- inc/config/config-local.php is no longer supported as it requires a (mostly)
application-specific file being placed into core which is not a good idea.
Better is strict separation of core-specific (framework only) and
application-specific.
- updated all file's copyright year to 2016
- added dummy for upcoming datbase migration support (later also between
different engines, if possible?)
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Häder [Tue, 16 Jan 2018 23:20:58 +0000 (00:20 +0100)]
Continued:
- removed Requestable instance from parameter list, this can now be done easier
with FrameworkBootstrap::getInstance() rather than handling the instance
around in many places (see inter-mezzo)
Roland Häder [Tue, 2 Jan 2018 22:43:02 +0000 (23:43 +0100)]
Continued:
- updated dependencies (composer is currently only used for PHPUnit dependency)
- you *may* use it for your own project but I highly recommend my way. Please
refer to other projects like "city" or "hub" for up-to-date examples.
- maybe one day, this will be more? ...
Roland Häder [Sun, 13 Aug 2017 19:19:54 +0000 (21:19 +0200)]
Rewrite continues:
- EmptyVariableException can be easily replaced by InvalidArgumentException (IEA)
because there is no need for to over-detailed exceptions, but still it is a
good idea to have more (custom) around than the defaults
- MissingMethodException was no longer used and is now emptied
- updated TODOs.txt
- ignored vendor in todo-builder.sh
Roland Häder [Sun, 13 Aug 2017 18:51:58 +0000 (20:51 +0200)]
Rewrites:
- *IsEmptyException are all superflous as also NPE and IAE can do the same and
much more generic
- closed TODO to remove inConstructor, was bad code style anyway
Roland Häder [Sun, 13 Aug 2017 18:36:12 +0000 (20:36 +0200)]
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
Roland Häder [Sun, 13 Aug 2017 18:15:36 +0000 (20:15 +0200)]
Rewrote a bit:
- removed redundant convertDashesToUnderscores() in FrameworkConfiguration but
had to add an include line again, let's save redudant code, right? :-)
Roland Häder [Sun, 13 Aug 2017 15:52:22 +0000 (17:52 +0200)]
Rewritten:
- rewrote framework to use more SPL's classes SplFileInfo and SplFileObject
instead of "bare" PHP functions (more objects, better type-hints)
- this may break a lot other code, please rewrite, too
- updated .gitattributes
Roland Häder [Sun, 16 Jul 2017 21:46:53 +0000 (23:46 +0200)]
Continued with unit tests:
- some refacturing: all detectFoo() methods are now moved from configuration
to bootstrap class as this seems proper place
- also they can only be called static
- DNS resolver is now globally quieted in tests/bootstrap.php
- created new unit test for FrameworkBootstrap class (partly)
- this origins from configuration unit test
Roland Häder [Sun, 16 Jul 2017 21:05:56 +0000 (23:05 +0200)]
Continued:
- Also test unsupported methods if they are still unsupported. Please note, that
these 2 methods may be removed from FrameworkInterface in the future as they
come from very old times where no database frontend classes exist.
Roland Häder [Sun, 16 Jul 2017 16:19:49 +0000 (18:19 +0200)]
Added first PHPUnit-based unit test. This will test some of the methods in the
configuration class 'FrameworkConfiguration'. Strangely, not all I have tested
have 100% coverage ... Why? :-(
Roland Häder [Sun, 16 Jul 2017 15:02:28 +0000 (17:02 +0200)]
Continued a bit:
- some rewrites to make PHPUnit be able to unit-test it
- more sanity-checks on parameters, were sometimes combined
- surpress some anoyances caused by to strict xdebug settings
Roland Häder [Sun, 16 Jul 2017 11:14:01 +0000 (13:14 +0200)]
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
Roland Häder [Sun, 16 Jul 2017 10:56:32 +0000 (12:56 +0200)]
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