Roland Haeder [Sat, 25 Feb 2017 15:58:18 +0000 (16:58 +0100)]
Continued:
- added missing config entry
- expanded config entry local_file_database_class with namespace
- need to load inc/database.php (which will later also be rewritten to an OOPed way)
- added "import" of FrameworkDatabase
- added "import" of BaseDatabaseBackend
- added "import" of DatabaseBackend
- added "import" of StoreableCriteria
Roland Haeder [Sat, 25 Feb 2017 15:43:20 +0000 (16:43 +0100)]
Continued:
- added "import" of DatabaseWrapperFactory
- added "import" of BaseDatabaseWrapper
- added "import" of SearchCriteria
- added "import" of Criteria
- expanded configuration entry with namespace (more will come)
Roland Haeder [Sat, 25 Feb 2017 15:37:56 +0000 (16:37 +0100)]
Continued:
- tests may later have filters but now let's not focus on it
- added "import" of BaseFactory
- added "import" of HtmlNewsFactory
- added "import" of ReadableNews
- added config entry news_reader_main_class
Roland Haeder [Sat, 25 Feb 2017 15:31:17 +0000 (16:31 +0100)]
Continued:
- to ease things, EmptyVariableException is no longer deprecated as it nicely
wraps the message, else if InvalidArgumentException or other SPL exception is
being used, the message must be copied all around.
- added "import" of EmptyVariableException
Roland Haeder [Fri, 24 Feb 2017 21:57:24 +0000 (22:57 +0100)]
Continued:
- add "import" for InvalidCommandException
- is<Action|Command|Controller>Valid() methods now have 2 parameters:
$namespace and $fooName
- InvalidCommandException is no longer deprecated
- removed [EOF] and ?>
Roland Haeder [Fri, 24 Feb 2017 21:10:34 +0000 (22:10 +0100)]
Continued:
- no need to have namespace as parameter (only isValidFoo() calls) as it can be
set in BaseResolver and all resolvers can use it which they must do anyway.
- added "import" for DefaultControllerException
- added "import" for Controller
Roland Haeder [Fri, 24 Feb 2017 20:23:05 +0000 (21:23 +0100)]
Continued:
- scanApplicationClasses() must be called before starter.php is being included.
- this whole thing is old and needs an entire rewrite (which will take place
slowly while this "namespace rewrite" and much more after it.
- added "import" for BaseResolver and Resolver
Roland Haeder [Fri, 24 Feb 2017 19:24:59 +0000 (20:24 +0100)]
Continued:
- added "import" for Responseable
- added "import" for StreamableInput
- all configured class names should not start with a backslash so the class
loader is not "confused" that there is an empty project/vendor name ... Well,
currently it ignores it but later maybe not.
- and last but not least, everywhere else no backslash is used for framework
"imports" so it is more consistent
Roland Haeder [Thu, 23 Feb 2017 21:00:39 +0000 (22:00 +0100)]
Continued with debugging:
- added exception InvalidClassNameException which is only being thrown by
ObjectFactory when the given class name is not following naming convention.
This is now strictly applied to all objects being created by that factory.
- introduced stripNamespaceFromClassName()
Roland Haeder [Thu, 23 Feb 2017 20:31:28 +0000 (21:31 +0100)]
Continued:
- added "import" for Streamable + fixed namespace, no plural
- added "import" for OutputStreamer
- added "import" for NullPointerException + thrown one in middleware
Roland Haeder [Wed, 22 Feb 2017 21:37:29 +0000 (22:37 +0100)]
Continued:
- "imported" Registry class
- rewrote exception handler to also handle anything else that implements
Throwable
- please note that application/<foo>/exceptions.php may become generalized
and will no longer be loaded as the same functionality is provided by this
framework then.
Roland Haeder [Tue, 21 Feb 2017 20:39:36 +0000 (21:39 +0100)]
Finished first cleanup (still a lot is broken):
- added more namespaces
- made more exceptions deprecated as there are better exceptions or names for it
- removed own [EOF] (old coding style)
- removed discouraged ?> from all files
Roland Haeder [Mon, 20 Feb 2017 22:08:14 +0000 (23:08 +0100)]
Continued:
- removed more [EOF] (own old style)
- removed more closing PHP tag as this is discouraged
- added namespaces + some more deprecation (can be replaced with generic
exceptions)
Roland Haeder [Wed, 15 Feb 2017 21:40:24 +0000 (22:40 +0100)]
Continued rewriting:
- 'loader.php' is now deprecated and also no longer loaded, instead selector.php
(also deprecated but still around) will load application's classes
- class name ApplicationHelper is now hard-wired
Roland Haeder [Mon, 13 Feb 2017 19:08:26 +0000 (20:08 +0100)]
Introduced namespaces:
- always use this pattern CoreFramework\Foo[\Bar] for namespaces
- added lots of namespaces (breaks all stuff)
- added "import" for FrameworkInterface
Roland Haeder [Wed, 29 Jun 2016 21:01:49 +0000 (23:01 +0200)]
Prepared rewrite of framework bootstrap:
- added initial class 'BootstrapFramework' which doesn't need to be
instanciated as only static methods will come
- $cfg in inc/config.php is now being unset, it is not good coding practice
to then use it outside the scope of the included file
- you then need to get $cfg again from
FrameworkConfiguration::getSelfInstance() to be able to set/get configuration
entries.
- added note how to deal with inc/config/config-local.php-dist which is an
example how to use it in your own applications.
- minor improvements (comments)
Roland Haeder [Wed, 29 Jun 2016 19:47:58 +0000 (21:47 +0200)]
Continued a bit:
- config-hubmaster.php is long time deprecated (from very early days) and the
'hub' project is the only one using it, so why keep it around?
- Some (needed by FrameworkInterface) methods now throw an
UnsupportedOperationException indicating that they are not implemented.
- Constructors are not even returning void, they are constructors (no real method)
Roland Haeder [Wed, 29 Jun 2016 18:04:56 +0000 (20:04 +0200)]
Continued a bit:
- line-feed is now Linux/Uni* way
- no more language-dependent templates, keep language out of them as they
should only define the structure of the website. Localization should be done
with e.g. php_intl
Roland Haeder [Fri, 13 Nov 2015 22:26:37 +0000 (23:26 +0100)]
Continued:
- ignored more bad lines (causes by php-fuse)
- added extension_foo_loaded (DONT TOUCH THIS)
- the script should check for existence (see 'hub' project) of an optional
PHP extension and then set the corresponding option to TRUE
- the above will later be made more generic
Roland Haeder [Sat, 12 Sep 2015 19:11:08 +0000 (21:11 +0200)]
Continued:
- moved some files/methods ("generic" enough to be here) from 'hub'.
- continued with file-based socket listener to allow listening to sockets ...
Roland Haeder [Tue, 25 Aug 2015 16:44:40 +0000 (18:44 +0200)]
Renamed classes/main/ to main/classes/ + added FuseFeature, an upcoming feature
for mounting parts of your application as a file system in user space (FUSE).
Roland Haeder [Wed, 29 Jul 2015 20:40:52 +0000 (22:40 +0200)]
Moved 'result' into 'database' as the actual class is a database result + added
(functionless) generic class for it. This generic class will be later be
expanded with more functionality.
Roland Haeder [Tue, 14 Jul 2015 21:20:40 +0000 (23:20 +0200)]
Continued with logger facility:
- Introduced BaseOutput and BaseDebugOutput
- Moved debug/ classes to outut/debug/<type>/ as <type> can be console, error
and web (later for HTML/HTTP output; careful, this may break sending HTTP
headers!)
- Handled over the class' name the logger is being created for (for later
configuration with XMLs)