mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
23 lines
425 B
PHP
23 lines
425 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Plugins\Config;
|
|
|
|
use CodeIgniter\Config\BaseService;
|
|
use Modules\Plugins\Core\Plugins;
|
|
|
|
class Services extends BaseService
|
|
{
|
|
public static function plugins(bool $getShared = true): Plugins
|
|
{
|
|
if ($getShared) {
|
|
return self::getSharedInstance('plugins');
|
|
}
|
|
|
|
$config = config('Plugins');
|
|
|
|
return new Plugins($config);
|
|
}
|
|
}
|