Controller now extends Object so that $this->app can be used.