. */ use Psr\Container\ContainerInterface; use SP\Domain\Core\Bootstrap\BootstrapInterface; use SP\Domain\Core\Bootstrap\ModuleInterface; use SP\Infrastructure\File\FileSystem; use SP\Modules\Api\Bootstrap; use function SP\processException; const APP_ROOT = __DIR__; const APP_MODULE = 'api'; try { $dic = FileSystem::require(FileSystem::buildPath(APP_ROOT, 'lib', 'Base.php'), ContainerInterface::class); Bootstrap::run($dic->get(BootstrapInterface::class), $dic->get(ModuleInterface::class)); } catch (Throwable $e) { processException($e); }