From 6ae7e0d4b3eaf20e2d2cd3d000cf61ab0c9b6e83 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 11 Jun 2026 02:39:35 +0900 Subject: feat(console): resolve phase-b TODOs in doRun and IO wiring Wire up ConsoleIO with HelperSet/QuestionHelper, register the ErrorHandler with the IO instance, and fall back to a default output in run(). Replace resolved phase-b TODOs across the console, command, io, factory, installer, dependency_resolver, and util modules; reclassify the remaining blockers (typed Symfony command registry, stdin resource caching) as phase-c. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/repository/platform_repository.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/repository/platform_repository.rs') diff --git a/crates/shirabe/src/repository/platform_repository.rs b/crates/shirabe/src/repository/platform_repository.rs index 1dec137..932584c 100644 --- a/crates/shirabe/src/repository/platform_repository.rs +++ b/crates/shirabe/src/repository/platform_repository.rs @@ -283,9 +283,12 @@ impl PlatformRepository { // The AF_INET6 constant is only defined if ext-sockets is available but // IPv6 support might still be available. let has_inet6 = self.runtime.has_constant("AF_INET6", None); + // PHP: Silencer::call([$this->runtime, 'invoke'], 'inet_pton', ['::']) + // TODO(phase-c): Composer's Platform\Runtime class is entirely a todo!() stub (invoke, + // has_constant, ...), so the inet_pton invocation cannot run. The placeholder callable + // returns false; resolving this requires implementing the Runtime wrapper (separate Phase C + // work) and a closure that forwards to the inet_pton shim. let inet_pton_check = Silencer::call(|| { - // TODO(phase-b): Runtime::invoke takes a Box) -> PhpMixed>; - // mirror PHP's `Silencer::call([$this->runtime, 'invoke'], 'inet_pton', ['::'])`. Ok::(self.runtime.invoke( Box::new(|_args| PhpMixed::Bool(false)), vec![ -- cgit v1.3.1