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