public function __construct(Application $app) { $this->view = $app->getView(); $this->request = $app->getRequest(); $this->response = $app->getResponse(); $this->json = $app->getJsonResponse(); }