mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
20 lines
375 B
PHP
20 lines
375 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Plugins\Config;
|
|
|
|
use CodeIgniter\Config\BaseService;
|
|
use Modules\Plugins\Plugins;
|
|
|
|
class Services extends BaseService
|
|
{
|
|
public static function plugins(bool $getShared = true): Plugins
|
|
{
|
|
if ($getShared) {
|
|
return self::getSharedInstance('plugins');
|
|
}
|
|
|
|
return new Plugins();
|
|
}
|
|
}
|