THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class ServiceProvider(IServiceProvider): (source)
Known subclasses: orionis.auth.provider.AuthProvider, orionis.cache.provider.CacheProvider, orionis.console.debug.provider.DumperProvider, orionis.console.reactor_provider.ReactorProvider, orionis.console.scheduler_provider.ScheduleProvider
Constructor: ServiceProvider(app)
Define optional registration and startup hooks for service providers.
| Method | __init__ |
Initialize a new ServiceProvider instance with the given application container. |
| Async Method | boot |
Perform post-registration initialization tasks. |
| Method | register |
Register services and components into the application container. |
| Instance Variable | app |
The application container instance to which this service provider will be attached. |
Initialize a new ServiceProvider instance with the given application container.
| Parameters | |
app:orionis.IApplication | The application container instance to which this service provider will be attached. |
| Returns | |
None | This constructor does not return a value. |
orionis.auth.provider.AuthProvider, orionis.cache.provider.CacheProvider, orionis.console.debug.provider.DumperProvider, orionis.console.reactor_provider.ReactorProvider, orionis.console.scheduler_provider.ScheduleProviderPerform post-registration initialization tasks.
This asynchronous method is called after all services have been registered. Subclasses may override this method to initialize services or perform operations required at application boot time.
| Returns | |
None | This method does not return a value. |
orionis.auth.provider.AuthProvider, orionis.cache.provider.CacheProvider, orionis.console.debug.provider.DumperProvider, orionis.console.reactor_provider.ReactorProvider, orionis.console.scheduler_provider.ScheduleProviderRegister services and components into the application container.
Subclasses may override this synchronous hook to bind services, configurations, or other components to the application container. It is called during the application's service registration phase.
Note
This method must be synchronous. Asynchronous operations are not supported in this method.
| Returns | |
None | This method does not return a value. |