Commit Graph

6 Commits

Author SHA1 Message Date
Andreas Gohr 0ecde6ce23 central logging mechanism
This introduces a logger mechanism and a new data/log directory. This is
a first proof of concept. It's built on top of the new global error
handling mechanism

Things to discuss:

* should we adopt PSR-3 somehow? if yes, how and should plugins be able
  to drop-in other psr3 loggers?
* how to configure which facilities shall be logged?
* should we implement a log deletion feature?
* is the log format sensible?
* should we implement a log viewer admin plugin?
* should logging trigger events (it should maybe replace the
  deprecation event)
2020-08-13 13:28:40 +02:00
Andreas Gohr 4352f9743c Better callable support in Event default actions
Instead of parsing the passed callback ourselves, this patch relies on
call_user_func_array() instead to call an Event's default action. This
ensures all possible ways to define a callback (including static
methods) can be used.

This should fix a problem mentioned in #2943
2020-01-22 13:24:50 +01:00
Andreas Gohr 091ad7bd4c Fix snake->camel case, doc blocks
For compatibility reasons, the methods have not been renamed.
2019-04-22 10:50:19 +02:00
Andreas Gohr 89614c82b0 Avoid processing events before the Event System is intiialized 2019-04-20 21:57:34 +02:00
Andreas Gohr cbb44eabe0 deprecated trigger_event() in favor of a static method on Event 2019-04-20 21:48:53 +02:00
Andreas Gohr e1d9dcc8b4 First go at moving the plugin classes into their own namespace 2019-04-20 21:33:23 +02:00