a6e9c08499
- 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
26 lines
496 B
PHP
26 lines
496 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shaarli\Plugin\Exception;
|
|
|
|
use Exception;
|
|
|
|
/**
|
|
* Class PluginFileNotFoundException
|
|
*
|
|
* Raise when plugin files can't be found.
|
|
*/
|
|
class PluginInvalidRouteException extends Exception
|
|
{
|
|
/**
|
|
* Construct exception with plugin name.
|
|
* Generate message.
|
|
*
|
|
* @param string $pluginName name of the plugin not found
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->message = 'trying to register invalid route.';
|
|
}
|
|
}
|