logbook/class/core/plugin/Plugin.class.php
linarphy a8aa60ae83
Fix following first run
The code 'works' as is
2025-04-15 21:03:44 +02:00

27 lines
507 B
PHP

<?php
namespace core\plugin;
/**
* Interface needed for every plugin
*/
interface Plugin
{
/**
* Map a class name to a custom one, defined by this plugin
*
* @param \string $class_name Asked class name
*
* @return \string Custom class name
*/
public static function fetch_class(string $class_name) : string;
/**
* Access to the plugin configuration
*
* @return \core\config\PluginConfiguration
*/
public static function configuration() : \core\config\PluginConfiguration;
}
?>