PointClickEngine::Core::Services
Global service configuration and access
Example usage:
# Initialize default services
Services.configure_defaults
# Access services
bus = Services.event_bus
bus.publish(SomeEvent.new)
# For testing, swap implementations
Services.registry.register_instance(EventBus, mock_bus)
Class methods
register(interface : T.class, lifetime : ServiceLifetime = ServiceLifetime::Singleton, &factory : ServiceRegistry -> T) forall T
Helper to register a custom service