faumarayandClaude Opus 4.8 32fbffa171 Introduce a service registry as Core's composition root
Add Void::Service::ServiceRegistry to Core. initialize() now registers every
service by interface — ILogger, ConfigManager, EventBus, INetworkClient,
Database, MusicManager, RpcServer — so code can resolve them via
Core::services().require<I>() instead of reaching for global singletons. The
three former singletons (logger/config/event bus) are wrapped in non-owning
aliasing shared_ptrs and remain valid behind the ECHOION_LOG_*/PUBLISH/
SUBSCRIBE macros; the registry just makes them discoverable as services.

This establishes the DI backbone; migrating individual call sites to
registry resolution is intentionally incremental. Requires the VoidLibrary
fix allowing non-polymorphic service types in provide<I>. Link Void::Service.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 17:00:31 +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%