faumarayandClaude Opus 4.8 a9ab0d6b75 Make the service registry a real read path for commands
The DI registry was write-only — populated in Core::initialize() but never
resolved through. Thread it into command execution so commands resolve
shared services by interface instead of constructing throwaways:

- CommandContext gains a non-owning ServiceRegistry* plus an ergonomic
  service<I>() resolver.
- CommandManager carries the registry (Core::setServices(&registry_)) and
  stamps it onto every CommandContext it builds (async + sync paths).
- RpcInfoCommand's getPublicIpAddress() now reuses the shared, initialized
  INetworkClient from the registry, falling back to a throwaway client only
  when none is registered.

Core itself (the composition root) keeps direct member wiring and commands
keep explicit MusicManager injection — converting those to a service locator
would only hide dependencies; the registry earns its keep at the genuine
seam where a command needs a service it isn't handed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 22:25:15 +03:00
2026-02-03 05:07:15 +03:00
2026-02-01 23:04:49 +03:00
2026-02-01 23:04:49 +03:00
S
Description
No description provided
745 KiB
0 Stars 3 Watchers 0 Forks
2026-08-02 00:27:03 +00:00
Languages
C++ 94.4%
CMake 3.2%
POV-Ray SDL 2.4%