Application API
The Application API provides classes and functions for creating and managing Ascender Framework applications.
It's a main entry point for initializing and configuring your application, Ascender Framework deeply depends on it.
createApplication
createApplication(app_module: type[AscModuleRef] | None = None, config: IBootstrap | None = None) -> Application
Creates an Application instance based on the provided app module or configuration.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| app_module | type[AscModuleRef] | None | An optional application module implementing AscModuleRef. | None | 
| config | IBootstrap | None | An optional list of providers for root-level configuration. | None | 
Returns:
| Type | Description | 
|---|---|
| Application | An initialized Application instance. | 
Raises:
| Type | Description | 
|---|---|
| ValueError | If both  | 
Application
See Also
- Getting Started - Application setup guide
- Modules - Module system
- Dependency Injection - DI container