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()
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 23 Feb 2017 20:47:59 +0000 (21:47 +0100)]
Debugging continued:
- BaseFrameworkSystem::createDebugInstance() now supports optional line number
to trace where the call was made
Signed-off-by: Roland Häder <roland@mxchange.org>
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
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 23 Feb 2017 20:10:26 +0000 (21:10 +0100)]
Continued:
- added "import" for BaseOutput, BaseDebugOutput and Debugger
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 23 Feb 2017 20:08:36 +0000 (21:08 +0100)]
added missing "import" for DebugMiddleware
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 23 Feb 2017 20:07:04 +0000 (21:07 +0100)]
Continued:
- added noisy trace message
- added "import" for Registerable
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 23 Feb 2017 19:52:00 +0000 (20:52 +0100)]
Continued:
- added "import" for BaseMiddleware class
- changed one-line comment to doc-tag as this is propper here
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 22 Feb 2017 22:39:56 +0000 (23:39 +0100)]
renamed class property $classes to $foundClasses so it is clear that these
classes has only been found but not yet loaded (require()).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 22 Feb 2017 22:26:42 +0000 (23:26 +0100)]
namespace added, this *must* be applied now to all calls of ObjectFactory methods
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 22 Feb 2017 22:21:45 +0000 (23:21 +0100)]
made the text more clear
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 22 Feb 2017 22:20:27 +0000 (23:20 +0100)]
Imported ReflectionException
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 22 Feb 2017 22:19:29 +0000 (23:19 +0100)]
Continued:
- added "import" for ObjectFactory
Signed-off-by: Roland Häder <roland@mxchange.org>
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.
Signed-off-by: Roland Häder <roland@mxchange.org>
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
Signed-off-by: Roland Häder <roland@mxchange.org>
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)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 16 Feb 2017 20:29:21 +0000 (21:29 +0100)]
Continued:
- added namespaces
- added import for Register and Registerable
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 16 Feb 2017 20:22:40 +0000 (21:22 +0100)]
added import for BaseRegistry
Signed-off-by: Roland Häder <roland@mxchange.org>
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
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 15 Feb 2017 21:11:15 +0000 (22:11 +0100)]
Continued:
- added more namespaces
- added "import" of ClassLoader and ApplicationHelper
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 15 Feb 2017 21:08:01 +0000 (22:08 +0100)]
Continued:
- added more namespaces
- added "import" for CompileableTemplate
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 15 Feb 2017 20:17:47 +0000 (21:17 +0100)]
Continued:
- added namespaces for further classes/interfaces
- added "import" for ManageableApplication
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 13 Feb 2017 20:46:20 +0000 (21:46 +0100)]
Added namespace support to class loader. If not present, an E_USER_WARNING is
being issued.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 13 Feb 2017 20:13:39 +0000 (21:13 +0100)]
Continued:
- added more namespaces
- added "import" lines for BaseFrameworkSystem
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 13 Feb 2017 19:15:03 +0000 (20:15 +0100)]
Continued:
- added more namespaces
- added more "import" lines for Registerable
Signed-off-by: Roland Häder <roland@mxchange.org>
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
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 13 Feb 2017 18:42:11 +0000 (19:42 +0100)]
update copyright as changes will happen this year
Signed-off-by: Roland Häder <roland@mxchange.org>
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)
Signed-off-by: Roland Häder <roland@mxchange.org>
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)
Signed-off-by: Roland Häder <roland@mxchange.org>
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
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 13 Feb 2016 20:55:07 +0000 (21:55 +0100)]
Added .gitattributes
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 22 Dec 2015 22:05:10 +0000 (23:05 +0100)]
Cleanup of duplicated methods ... Well, this stuff needs rewrite to an own class
for better encapsulation as sockets are more and more needed.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 14 Dec 2015 20:44:39 +0000 (21:44 +0100)]
Make sure 'argv' and 'argc' are there.
Signed-off-by: Roland Häder <roland@mxchange.org>
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
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 6 Oct 2015 18:45:22 +0000 (20:45 +0200)]
Merge ../hub/core
Roland Haeder [Tue, 6 Oct 2015 18:43:40 +0000 (20:43 +0200)]
Moved more methods to a maybe not-so-good place.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 6 Oct 2015 18:43:40 +0000 (20:43 +0200)]
Moved more methods to a maybe not-so-good place.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 6 Oct 2015 18:40:49 +0000 (20:40 +0200)]
Maybe right place here? Maybe total rewrite!
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 6 Oct 2015 18:28:29 +0000 (20:28 +0200)]
Moved some code from TcpListener and made it a bit more generic, maybe just enough.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 6 Oct 2015 17:54:33 +0000 (19:54 +0200)]
Fixed message.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 4 Oct 2015 16:20:37 +0000 (18:20 +0200)]
Missed to call getConfigInstance() first.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 12 Sep 2015 20:47:20 +0000 (22:47 +0200)]
Added config entry for configuring the IPC socket file name.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 12 Sep 2015 20:37:38 +0000 (22:37 +0200)]
Moved from 'hub'.
Signed-off-by: Roland Häder <roland@mxchange.org>
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 ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 12 Sep 2015 06:03:28 +0000 (08:03 +0200)]
Setting a listener type is needed for later pooling.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 12 Sep 2015 06:00:59 +0000 (08:00 +0200)]
Also this one ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 12 Sep 2015 06:00:12 +0000 (08:00 +0200)]
These methods are already in BaseListener
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 12 Sep 2015 05:57:35 +0000 (07:57 +0200)]
Opps.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 12 Sep 2015 05:54:16 +0000 (07:54 +0200)]
Moved files + added interface + generic socket file listener
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 3 Sep 2015 19:30:31 +0000 (21:30 +0200)]
Fixed tableName issue
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Thu, 27 Aug 2015 01:36:26 +0000 (03:36 +0200)]
Added new classes for file system and interfaces for it + introduced CloseableFile.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 25 Aug 2015 17:37:34 +0000 (19:37 +0200)]
Typo fixed ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 25 Aug 2015 17:36:37 +0000 (19:36 +0200)]
Added config entry feature_fuse_class
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 25 Aug 2015 17:34:52 +0000 (19:34 +0200)]
Added missing method.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 25 Aug 2015 17:27:48 +0000 (19:27 +0200)]
Added command for FUSE feature + implemented execute() a little.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 25 Aug 2015 17:15:36 +0000 (19:15 +0200)]
Some fixes for tests application (will become more maybe).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 25 Aug 2015 17:12:33 +0000 (19:12 +0200)]
Test class added (nothing really implemented so far).
Signed-off-by: Roland Häder <roland@mxchange.org>
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).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 25 Aug 2015 14:26:11 +0000 (16:26 +0200)]
Opps, forgot this.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 21:37:55 +0000 (23:37 +0200)]
Added new methods:
- setPrimaryKeyCombined()
- getPrimaryKeyCombined()
- setCriteria()
- setStringGenericArrayElement()
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 21:15:09 +0000 (23:15 +0200)]
Added a public methods to interface + some logger messages.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 24 Aug 2015 20:46:11 +0000 (22:46 +0200)]
Commented out this, too.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 16 Aug 2015 09:38:13 +0000 (11:38 +0200)]
Separated this config entry for console/html as well.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 16 Aug 2015 09:08:25 +0000 (11:08 +0200)]
Moved from 'city' project.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 16 Aug 2015 09:01:00 +0000 (11:01 +0200)]
Opps, please fix this!
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 16 Aug 2015 08:59:15 +0000 (10:59 +0200)]
Code templates needs to be configured separately for HTML and console.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 1 Aug 2015 12:27:03 +0000 (14:27 +0200)]
Using the bebug middleware class will become deprecated (now already marked
to warn you) when the new logger facilities are coming out.
Signed-off-by: Roland Häder <roland@mxchange.org>
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.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 14 Jul 2015 21:32:18 +0000 (23:32 +0200)]
Always use own getter/setter ... A good policy, if sticked to. ;-)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 14 Jul 2015 21:31:02 +0000 (23:31 +0200)]
Moved outputInstance to BaseFrameworkSystem + added getter for it.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 14 Jul 2015 21:27:32 +0000 (23:27 +0200)]
Added missing class
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 14 Jul 2015 21:23:35 +0000 (23:23 +0200)]
Opps, introduced this for debugging ...
Signed-off-by: Roland Häder <roland@mxchange.org>
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)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 4 Jul 2015 04:17:52 +0000 (06:17 +0200)]
Missed this ... :-(
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 4 Jul 2015 04:16:40 +0000 (06:16 +0200)]
Make sure the path can be written to.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 4 Jul 2015 04:11:30 +0000 (06:11 +0200)]
Also check on existence.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sat, 4 Jul 2015 04:09:00 +0000 (06:09 +0200)]
Added missing exception
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 3 Jul 2015 14:59:03 +0000 (16:59 +0200)]
Used more DatabaseWrapperFactory as one instance of each is fine.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 29 Jun 2015 18:15:57 +0000 (20:15 +0200)]
Grrr .... :-(
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 29 Jun 2015 18:13:46 +0000 (20:13 +0200)]
Tpyo fixed ... ;-)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 29 Jun 2015 18:11:16 +0000 (20:11 +0200)]
Now the idle loop time is configurable, please don't set it to low or to high as
both will hurt your application's performance and CPU usage.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 29 Jun 2015 03:12:52 +0000 (05:12 +0200)]
Wrong tests ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 29 Jun 2015 03:09:26 +0000 (05:09 +0200)]
Opps ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 29 Jun 2015 03:05:24 +0000 (05:05 +0200)]
Added some pre-checks.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 29 Jun 2015 00:44:27 +0000 (02:44 +0200)]
Moved from 'hub' project.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Mon, 29 Jun 2015 00:39:56 +0000 (02:39 +0200)]
Added protocolName from BaseHubSystem as classes outside 'hub' will need it
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Sun, 28 Jun 2015 19:43:52 +0000 (21:43 +0200)]
These are noisy debug lines.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 10 Jun 2015 19:45:35 +0000 (21:45 +0200)]
Added exception from 'hub' project
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 10 Jun 2015 18:10:41 +0000 (20:10 +0200)]
Added accept() and doShutdown() to Taskable as this will always be needed.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Fri, 29 May 2015 02:21:24 +0000 (04:21 +0200)]
Moved setter/getter from 'hub' code as also 'city' uses it.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 27 May 2015 02:23:42 +0000 (04:23 +0200)]
Debug infos with var()=%d are for length and can be decimal.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 27 May 2015 01:50:33 +0000 (03:50 +0200)]
Old lost parameter from old template ... :-(
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 27 May 2015 01:41:03 +0000 (03:41 +0200)]
Na, not again ... ;-(
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 27 May 2015 01:32:23 +0000 (03:32 +0200)]
Use of the FrameworkFeature class (which is a manager somehow) +
__callStatic() is now more verbose if NULL or an empty string was used.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 27 May 2015 01:28:27 +0000 (03:28 +0200)]
Method convertToClassName() and convertDashesToUnderscores() are now static as
they don't use any object context.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 27 May 2015 01:17:43 +0000 (03:17 +0200)]
Added new FrameworkFeature class + missing exception:
- Features can be enabled or disabled by the user
- Their availability depends on if the feature is enabled and if all
requirements are found. This can be anything like loaded PHP extensions (PECL)
or anything else.
- Features can have methods that can be called (publicly) where their actual
"feature" is being written.
- This can be again a class with static or non-static methods that will be
called.
- Generally feature classes shall not contain the actual implementation, they
shall only call implementing classes.
- So basicly a feature class "hides" the actual implementation and can be
understood as a generic facade.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 26 May 2015 22:45:17 +0000 (00:45 +0200)]
Introduced ConfigValueTypeUnsupportedException
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 26 May 2015 22:23:55 +0000 (00:23 +0200)]
Opps, wrong method name ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 26 May 2015 22:19:22 +0000 (00:19 +0200)]
Added check for "scrypt feature" (if no config entry is set, it assumed not being there).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 26 May 2015 21:53:33 +0000 (23:53 +0200)]
More usage of FileNotFoundException
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Tue, 26 May 2015 21:51:59 +0000 (23:51 +0200)]
Introduced FileNotFoundException
Signed-off-by: Roland Häder <roland@mxchange.org>