function setEnvironment(Environment $env) { $this->environment = $env; $env->setLoader($this); Controller::setEnvironment($env); return $this; }