mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-13 01:35:47 +00:00
27 lines
426 B
PHP
27 lines
426 B
PHP
![]() |
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Modules\Plugins;
|
||
|
|
||
|
class Plugins
|
||
|
{
|
||
|
/**
|
||
|
* @var array<PluginInterface>
|
||
|
*/
|
||
|
protected array $installed = [];
|
||
|
|
||
|
public function registerPlugin(PluginInterface $plugin): void
|
||
|
{
|
||
|
$this->installed[] = $plugin;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return array<PluginInterface>
|
||
|
*/
|
||
|
public function getInstalled(): array
|
||
|
{
|
||
|
return $this->installed;
|
||
|
}
|
||
|
}
|