Inject configuration through constructor.