| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
|
|
| |
Since PHP7.4 has no primitive type hints and PHP native methods have no
accessible docblocks, we can not use a native function for testing
(types always come back as string).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This introduces an ApiCall class that wraps around the actual method
that produces the result. This replaces various loose array structures
that provided the meta information before.
The ApiCall streamlines the aggregation of meta information between core
and plugin methods. Now all data is produced by Reflection based
introspection. Certain aspects can be overridden if needed. See
ApiCore::getRemoteInfo() for examples
This change removes the _getMethods() method from remote plugins and
introduces a getMethods() method. The two are NOT compatible as the
latter now returns a list of ApiCalls. However when looking at the
existing plugins, it seems that _getMethods() was nearly 100% obsolete
with the Reflection based default implementation. So most plugins will
not be affected at all. Some might now export one or two more methods
than before because of poor visibility settings (eg. not declaring
private/protected methods as such).
This change removes the RPC_CALL_ADD hook. Only a single plugin ever
implemented it. I'm not sure what this hook was supposed to do anyway.
Being able to declare arbitrarily named API endpoints seems wrong to me
anyway.
The new ApiCall now also supports passing named instead of positional
parameters. This will open up a new opportunity to get a proper openapi
spec running.
Next step is fixing the tests.
|
|\
| |
| | |
Implement Token Authentication
|
| | |
|
| | |
|
|\ \
| | |
| | | |
implement composer dev dependencies as suggested in #4058
|
| | | |
|
| | |
| | |
| | |
| | | |
It's now installed via composer
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
We like our one-line guardians.
See discussion in
https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1788608355
https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1789826392
|
|\ \
| | |
| | | |
strip any trailing dots when resolving IDs
|
| | |
| | |
| | |
| | | |
These tests have been moved to the File namespace.
|
| |/
| |
| |
| | |
fixes #4072
|
| | |
|
|/
|
|
| |
It was already replace in code, replaced in unit test as well.
|
|
|
|
| |
This is mostly relevant to plugin workflows.
|
| |
|
|
|
|
|
|
| |
By setting the environment variable RECTOR_MIN_PHP the supported minimum
PHP release can be set. This is needed to make plugin changes compatible
with DokuWiki stable.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
We can use the PHP8 rector classes for the polyfills introduced in
a4c648fffdf5bc5db83c9aa9c6c4bf5fb5edc85f
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This method was used to ensure some basic readability in the created
HTML sources long before Firebug and later the builtin inspector tools
in browsers pretty printed the HTML for you. Today, this is no longer
needed.
This adds a custom rector rule to automatically change all occurances to
echo statements.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Automatically rename occurances of deprecated functions and classes.
These renames will come in even more handy when rector is applied to 3rd
party plugins.
|
| |
|
|
|
|
|
| |
PSR-12 says constants need their visibility declared from PHP 7.1
onwards
|