From cb170e3229eda3201eda4fbfe3e01d0f8f443582 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 12 Sep 2016 15:46:55 +0200 Subject: [PATCH] Extending view This way no GenericView should be required. --- Views/View.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Views/View.php b/Views/View.php index 36d8a4bc6..a4a1a5696 100644 --- a/Views/View.php +++ b/Views/View.php @@ -196,4 +196,26 @@ class View extends ViewAbstract return $this->app->l11nManager->getText($this->l11n->getLanguage(), $module, $theme, $translation); } + /** + * @return Request + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function getRequest() + { + return $this->request; + } + + /** + * @return Response + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function getResponse() : Response + { + return $this->response; + } + }