CoreServiceProvider
final class CoreServiceProvider implements ServiceProviderInterface (View source)
Registers the foundational framework services required by the core runtime.
The provider wires PSR-17 interfaces, controller resolution helpers, base URL resolution, framework metadata, exception logging, and system clock services.
Methods
Registers core framework services as singletons in the container.
Details
register
void
register(ContainerInterface $container)
Registers core framework services as singletons in the container.
Nyholm's PSR-17 factory is exposed through all PSR-17 interfaces used by the framework through their typed interfaces. The provider also registers controller and URL helpers, framework metadata, exception logger, and a system clock resolved from the application timezone. When the timezone is missing or empty, the system clock falls back to its default timezone behaviour.