-
-
Couldn't load subscription status.
- Fork 10
Dependency injection
Alexanderius edited this page Jul 3, 2025
·
4 revisions
Dependency injection is used by default via the Simplify.DI IOC container for all classes in Simplify.Web, including user controllers and views.
- Controllers and views are registered automatically in the IOC container when the framework starts by passing the
trueparameter toUseSimplifyWeborUseSimplifyWebNonTerminalmethods, or by manually callingRegisterSimplifyWebon theIDIRegistratorinterface of the IOC container. - If your controllers or views use constructor injection, you should register those dependencies before the web application starts or before manually calling the IOC container's
Verifymethod.
Please refer to Simplify.DI for registration details.
- Getting Started
- Main Simplify.Web principles
- Simplify.Web controllers
- Simplify.Web views
- Simplify.Web templates
- Simplify.Web configuration
- Templates variables
- Static content
- Template factory
- Data collector
- String table
- File reader
- Web context
- Environment
- Dynamic environment
- Language manager
- Redirector
- HTML