| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
A new plugin hook has been added: hook_test_filter_search_entry
This hook allows to filter out bookmark with custom plugin code when a search is performed.
Related to #143
|
|
|
|
|
|
|
|
|
|
| |
- each route will be prefixed by `/plugin/<plugin_name>`
- add a new template for plugins rendering
- add a live example in the demo_plugin
Check out the "Plugin System" documentation for more detail.
Related to #143
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Also prevent the token to be saved.
Fixes #1550
|
|
|
|
|
| |
If a PHP is raised while executing plugin hook, Shaarli will display an error instead of rendering the error page (or just ending in fatal error for default hooks).
Also added phpErrorHandler which is handled differently that regular errorHandler by Slim.:
|
|
|
|
|
|
|
|
| |
Bump PHPUnit version and fix unit test
- Globals are handled differently and are persistent through tests
- Tests without assertions are marked as risky: some of them are just
meant to check that no error is raised.
|
|
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
|
|
|
|
|
|
|
| |
Namespaces have been introduced with the REST API, and should be generalized
to the whole codebase to manage object scope and benefit from autoloading.
See:
- https://secure.php.net/manual/en/language.namespaces.php
- http://www.php-fig.org/psr/psr-4/
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\
| |
| | |
Add a description to plugin parameters
|
| |
| |
| |
| |
| |
| | |
Plugin parameter can contain a description in their meta file under the key:
parameter.<param_name>="<description>"
|
|/
|
|
| |
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| |
|
| |
|
| |
|
|
see shaarli/Shaarli#275
|