History log of /dokuwiki/inc/load.php (Results 1 – 25 of 104)
Revision Date Author Comments
# 958c4f80 02-Dec-2024 Andreas Gohr <andi@splitbrain.org>

removed obsolete files from static autoloader


# ff136773 14-Sep-2023 Andreas Gohr <andi@splitbrain.org>

AutoLoader: ignore plugin enabled/disabled during unit tests

This is required currently because the enabled status of a plugin is
only set when it's appropriate test runs. However some plugins do se

AutoLoader: ignore plugin enabled/disabled during unit tests

This is required currently because the enabled status of a plugin is
only set when it's appropriate test runs. However some plugins do setup
mock classes before the test is instantiated which will then fail.
So for now we skip the enabled checks alltogether for unit testing.

show more ...


# 4602718b 14-Sep-2023 Andreas Gohr <andi@splitbrain.org>

Refactor autoloading, fix #4048

This refactors the auto loading stuff into an anonymous class and cleans
it up a bit.

It also ensures that plugin classes are not autoloaded when the plugin
is disab

Refactor autoloading, fix #4048

This refactors the auto loading stuff into an anonymous class and cleans
it up a bit.

It also ensures that plugin classes are not autoloaded when the plugin
is disabled. This however only works after the plugin controller has
been initialized.

We currently reference some classes of the config plugin in out
deprecated.php file resulting in these classes being loaded before the
plugin controller. Not a big deal I guess.

show more ...


# 6c16a3a9 14-Sep-2023 fiwswe <fiwswe@fwml.de>

Use str_starts_with/str_ends_with


# d4f83172 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: line breaks


# 90fb952c 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: operator spacing


# 7d34963b 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow line breaks


# 177d6836 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow whitespaces


# dccd6b2b 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: function call spacing


# 316e3ee6 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: EOF new lines


# d868eb89 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function declaration braces/spaces


# 24870174 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to the rest of inc


# 95d53aae 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

remove non-existing file from autoloader


# ec85aeb2 19-Oct-2022 Andreas Gohr <andi@splitbrain.org>

fix autoloading for tests

This replaces my attempt in 12ebce974be688ac34bf4389645d5fc7baa29cc7

The canonical namespace for DokuWiki core tests is dokuwiki/test/ and
this is mapped to _test/tests no

fix autoloading for tests

This replaces my attempt in 12ebce974be688ac34bf4389645d5fc7baa29cc7

The canonical namespace for DokuWiki core tests is dokuwiki/test/ and
this is mapped to _test/tests now in the autoloader.

This means the majority of tests is in the dokuwiki/test/inc namespace.

Mockfiles are located at _test/mock and have the namespace
dokuwiki/test/mock - if that's good or bad is debatable. I simply kept
it as it always has been. But there might be an argument for having mock
objects closer to the tests that use them (eg. right next to the test
files).

show more ...


# 7f8f2456 16-Sep-2021 Andreas Gohr <andi@splitbrain.org>

move IXR XML RPC to composer dependency #1970

This is a monky patched version of kissyfrot/php-ixr until my PR has
been accepted upstream.

Plugins using the XML RPC client may need adjustments.


# f1d70d12 04-Feb-2021 Andreas Gohr <andi@splitbrain.org>

remove old DokuCLI class

This has been deprecated in 2017. Removing it instead of fixing tests
and PHP8 compatibility


# 697ca7e2 13-Aug-2020 Andreas Gohr <andi@splitbrain.org>

fixed plugin name output on load error


# 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 ...


# 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 ...


# 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


12345