$channel, 'method' => 'CLI', 'path' => $path, ]); if (!$container instanceof AppContainer) { throw new RuntimeException('CLI app container bootstrap failed.'); } return $container; }