aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/plugin/exception/PluginInvalidRouteException.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-12-16 16:04:15 +0100
committerGitHub <noreply@github.com>2020-12-16 16:04:15 +0100
commitbd11879018416d2c5d87728bb0be6ee0cf54451a (patch)
treef3147ab9eef24ff430c131249166fe84d19a4b07 /application/plugin/exception/PluginInvalidRouteException.php
parent8f423eb11c6642d96b5144f56e4698652591ad6b (diff)
parenta6e9c08499f9f79dad88cb3ae9eacda0e0c34c96 (diff)
downloadShaarli-bd11879018416d2c5d87728bb0be6ee0cf54451a.tar.gz
Shaarli-bd11879018416d2c5d87728bb0be6ee0cf54451a.tar.zst
Shaarli-bd11879018416d2c5d87728bb0be6ee0cf54451a.zip
Merge pull request #1645 from ArthurHoaro/feature/plugin-register-route
Plugin system: allow plugins to provide custom routes
Diffstat (limited to 'application/plugin/exception/PluginInvalidRouteException.php')
-rw-r--r--application/plugin/exception/PluginInvalidRouteException.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/application/plugin/exception/PluginInvalidRouteException.php b/application/plugin/exception/PluginInvalidRouteException.php
new file mode 100644
index 00000000..6ba9bc43
--- /dev/null
+++ b/application/plugin/exception/PluginInvalidRouteException.php
@@ -0,0 +1,26 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Shaarli\Plugin\Exception;
6
7use Exception;
8
9/**
10 * Class PluginFileNotFoundException
11 *
12 * Raise when plugin files can't be found.
13 */
14class PluginInvalidRouteException extends Exception
15{
16 /**
17 * Construct exception with plugin name.
18 * Generate message.
19 *
20 * @param string $pluginName name of the plugin not found
21 */
22 public function __construct()
23 {
24 $this->message = 'trying to register invalid route.';
25 }
26}