Dependency injection works with the classes in core package.