| #
ffa84f81 |
| 13-Jul-2020 |
Andreas Gohr <andi@splitbrain.org> |
better exception handling on plugin loading
Now all important places where plugins are loaded are guarded by a try/except. We're catching Throwables here to be able to catch stuff like syntax errors
better exception handling on plugin loading
Now all important places where plugins are loaded are guarded by a try/except. We're catching Throwables here to be able to catch stuff like syntax errors early on (otherwise they will only be caught by our ErrorConverter much too late). This means that this change requires PHP 7.0 minimum!
show more ...
|
| #
9de2cebc |
| 07-Jun-2020 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
Merge branch 'master' into Refactor_Fulltext
|
| #
46028c4c |
| 04-Jun-2020 |
Andreas Gohr <andi@splitbrain.org> |
Move defines to their own file
As described in https://github.com/dwp-forge/columns/issues/5#issuecomment-638467603 sometime the Lexer constants have not been (auto)loaded when a syntax plugin is in
Move defines to their own file
As described in https://github.com/dwp-forge/columns/issues/5#issuecomment-638467603 sometime the Lexer constants have not been (auto)loaded when a syntax plugin is invoked (I'm not sure why).
In general PSR2 discourages a mix of main code and function/class setup with the call to define() being considered main code.
This patch moves these the define calls to a separate new file, solving both of the above problems.
These are not all our defines. Instead I focused on the ones that are ENUM-like.
In the future we should think about what defines can be replaced by class constants and what other define() calls should be moved.
show more ...
|
| #
6f58ff65 |
| 01-Feb-2020 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
obsolete fulltext.php and indexer.php files
define deprecated functions in deprecated.php file. fix load.php, loading fulltext.php and indexer.php is nolonger necessary.
|
| #
68f88d34 |
| 20-May-2019 |
Andreas Gohr <andi@splitbrain.org> |
Use type safe comparisons in loader
|
| #
0aace2b9 |
| 20-May-2019 |
Andreas Gohr <andi@splitbrain.org> |
Remove obsolete include
Subscriptions are autoloaded now
|
| #
820934dc |
| 19-May-2019 |
Andreas Gohr <andi@splitbrain.org> |
Merge branch 'psr2-pluginredux' into psr2
* psr2-pluginredux: Minor optimizations in PluginController Snake to Camel case fixes inn PluginController Fix snake->camel case, doc blocks minor c
Merge branch 'psr2-pluginredux' into psr2
* psr2-pluginredux: Minor optimizations in PluginController Snake to Camel case fixes inn PluginController Fix snake->camel case, doc blocks minor code simplification snake to camel case fixes in EventHandler Move list of plugin types to plugin controller constant Avoid accessing the evet system before it's intialized Avoid processing events before the Event System is intiialized isEnabled instead of isDisabled removed get_directory() method from PluginController fix type hints moved plugin controller to Extension namespace removed deleted file from autoloader deprecated trigger_event() in favor of a static method on Event First go at moving the plugin classes into their own namespace
show more ...
|
| #
451969ab |
| 22-Apr-2019 |
Michael Große <mic.grosse@googlemail.com> |
Move Subscription class to deprecated.php
This class has been replaced by the classes in the dokuwiki/Subscriptions namespace.
|
| #
1935a891 |
| 21-Apr-2019 |
Andreas Gohr <andi@splitbrain.org> |
Move list of plugin types to plugin controller constant
There is no need to have them in a global variable.
|
| #
3a7140a1 |
| 15-Jun-2018 |
Andreas Gohr <andi@splitbrain.org> |
moved plugin controller to Extension namespace
|
| #
c630f659 |
| 15-Jun-2018 |
Andreas Gohr <andi@splitbrain.org> |
removed deleted file from autoloader
|
| #
e1d9dcc8 |
| 15-Jun-2018 |
Andreas Gohr <andi@splitbrain.org> |
First go at moving the plugin classes into their own namespace
|
| #
60b9af73 |
| 17-Mar-2019 |
Michael Große <mic.grosse@googlemail.com> |
Move deprecated HTTPClient classes to deprecated.php
|
| #
c3cc6e05 |
| 06-Mar-2019 |
Andreas Gohr <andi@splitbrain.org> |
PSR2 adjustments for the PassHash class
I opted for ignoring the camel case funtion check not because the public hash_* methods are widely used but because I find this style actually cleaner in this
PSR2 adjustments for the PassHash class
I opted for ignoring the camel case funtion check not because the public hash_* methods are widely used but because I find this style actually cleaner in this case where the method name is auto-built from the hash type name.
show more ...
|
| #
ccc4c71c |
| 19-Feb-2019 |
Andreas Gohr <andi@splitbrain.org> |
adjusted the Input clases for PSR2
They are now in their own namespace.
|
| #
d443762b |
| 27-Jul-2018 |
Andreas Gohr <andi@splitbrain.org> |
deprecated JSON class
JSON is natively supported since years. This makes 2145bd4c56435f829a19aad843172f8ddffbc69b obsolete again.
|
| #
4cdb6842 |
| 07-May-2018 |
Andreas Gohr <andi@splitbrain.org> |
started a dedicated file for deprecated stuff
|
| #
dd87735d |
| 07-May-2018 |
Andreas Gohr <andi@splitbrain.org> |
PSR-2 compatibility for the remote API libs
|
| #
de226116 |
| 04-May-2018 |
Andreas Gohr <andi@splitbrain.org> |
adjusted the Lexer for PSR-2
|
| #
d2778ca9 |
| 27-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
correctly autoload the parser stuff
|
| #
a087da71 |
| 27-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
fixed broken tests
I also introduced an auto loaded namespace for the tests.
|
| #
64159a61 |
| 27-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
line lengths shortened
This makes sure all files use line lenghts shorter than 120 characters.
This is a quick fix. It might not always be the nicest change.
|
| #
874fc8d3 |
| 05-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #2168 from splitbrain/cli
New CLI Plugin Type
|
| #
8cbb9bb8 |
| 24-Dec-2017 |
Gerrit Uitslag <klapinklapin@gmail.com> |
remove old class reference
files were deleted by fa2c560da3df273672806893a2f660982c0011f0
|
| #
39bceb98 |
| 10-Nov-2017 |
Andreas Gohr <andi@splitbrain.org> |
Change plugin functionality into a trait
This allows for using the functionality in class hierarchies that can not inherit from DokuWiki_Plugin.
|