| 1 | <?php |
||
| 8 | class PluginHelper |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The base namespace with plugin must be declared |
||
| 12 | */ |
||
| 13 | const PLUGIN_NAMESPACE_TEMPLATE = 'Moka\\Plugin\\%s\\%sPlugin'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $pluginName |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | public static function generatePluginFQCN(string $pluginName): string |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $pluginName |
||
| 30 | * @return string |
||
| 31 | * @throws NotImplementedException |
||
| 32 | */ |
||
| 33 | public static function loadPlugin(string $pluginName): string |
||
| 48 | } |
||
| 49 |