Debian Codegraph @

vendor/ipl/stdlib/src/Contract/PluginLoader.php

raw
1 <?php
2
3 namespace ipl\Stdlib\Contract;
4
5 /**
6 * Load plugin class names by plugin name
7 *
8 * Implementations must provide the fully qualified class name of a plugin via {@see load()}.
9 */
10 interface PluginLoader
11 {
12 /**
13 * Load the class file for a given plugin name
14 *
15 * @param string $name Name of the plugin
16 *
17 * @return string|false FQN of the plugin's class if found, false otherwise
18 */
19 public function load(string $name): string|false;
20 }