RequestContext, as each one has a
controllerproperty that extends from the app's global container.
ioc, you can automatically inject the dependencies of any route handler.
Controllers have dependencies injected without any additional configuration by you. However, you might want to inject dependencies into the constructor of your controller.
dart:mirrorsor other Reflection
EmptyReflector()to power its
Containerinstances, which has no support for
dart:mirrors, so that it can be used in contexts where Dart reflection is not available.
Reflector, you can use the full power of Angel's DI system.
angel initprojects use the
iocfunction in any route
package:angel3_container/mirrors.dartis by far the most convenient pattern, so use it if possible.
Reflectorinterface (cumbersome; not recommended)