Injecting globals into controller