mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00
21 lines
460 B
PHP
21 lines
460 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Api\Rest\V1\Config;
|
|
|
|
use CodeIgniter\Config\BaseService;
|
|
use Modules\Api\Rest\V1\Core\RestApiExceptions;
|
|
|
|
class Services extends BaseService
|
|
{
|
|
public static function restApiExceptions(bool $getShared = true): RestApiExceptions
|
|
{
|
|
if ($getShared) {
|
|
return static::getSharedInstance('restApiExceptions');
|
|
}
|
|
|
|
return new RestApiExceptions(config('Exceptions'));
|
|
}
|
|
}
|