Get the Container instance
Use for service registration and resolution:
Create mock RouterContext for queue/cron/seeder processing
Use this when you need to create a request scope outside of HTTP context.
Locale for i18n (default: 'en')
Mock RouterContext suitable for runInRequestScope
Handle queue batch processing
Creates a request scope with mock RouterContext and processes the batch. Queue name is passed for logging purposes; routing is by message type.
Handle scheduled cron trigger
Resolve a service from the container
DI token for the service
Resolved service instance
Application
Main application class managing the two-tier container hierarchy:
Architecture:
Example