]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Plugin system: allow plugins to provide custom routes 1645/head
authorArthurHoaro <arthur@hoa.ro>
Tue, 27 Oct 2020 18:23:45 +0000 (19:23 +0100)
committerArthurHoaro <arthur@hoa.ro>
Sun, 15 Nov 2020 11:41:43 +0000 (12:41 +0100)
commita6e9c08499f9f79dad88cb3ae9eacda0e0c34c96
tree41f70d7dc478e70a4a3ce4a578839316f5578765
parent6f9e0609f4c118142504234ebcc7d93456b5e588
Plugin system: allow plugins to provide custom routes

  - 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
13 files changed:
application/container/ContainerBuilder.php
application/plugin/PluginManager.php
application/plugin/exception/PluginInvalidRouteException.php [new file with mode: 0644]
doc/md/dev/Plugin-system.md
index.php
phpcs.xml
plugins/demo_plugin/DemoPluginController.php [new file with mode: 0644]
plugins/demo_plugin/demo_plugin.php
tests/PluginManagerTest.php
tests/container/ContainerBuilderTest.php
tests/plugins/test/test.php
tests/plugins/test_route_invalid/test_route_invalid.php [new file with mode: 0644]
tpl/default/pluginscontent.html [new file with mode: 0644]