From be51f894bb0ed10795fc5736e7a418dfe60054a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 1 Sep 2020 13:39:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/Abstracts/BaseApplication.php | 100 +++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/system/Abstracts/BaseApplication.php b/system/Abstracts/BaseApplication.php index 256c43a8..b1c8d8bd 100644 --- a/system/Abstracts/BaseApplication.php +++ b/system/Abstracts/BaseApplication.php @@ -228,6 +228,106 @@ abstract class BaseApplication extends Service return $this->getFirstLocal() == $ip; } + + /** + * @return ErrorHandler + * @throws ComponentException + */ + public function getError() + { + return $this->get('error'); + } + + + /** + * @return Processes + * @throws ComponentException + */ + public function getProcesses() + { + return $this->get('processes'); + } + + + /** + * @return Processes + * @throws ComponentException + */ + public function getAnnotation() + { + return $this->get('annotation'); + } + + + /** + * @return Processes + * @throws ComponentException + */ + public function getConnections() + { + return $this->get('connections'); + } + + + /** + * @return Processes + * @throws ComponentException + */ + public function getPool() + { + return $this->get('pool'); + } + + /** + * @return Processes + * @throws ComponentException + */ + public function getResponse() + { + return $this->get('response'); + } + + /** + * @return Processes + * @throws ComponentException + */ + public function getRequest() + { + return $this->get('request'); + } + + + /** + * @return Processes + * @throws ComponentException + */ + public function getConfig() + { + return $this->get('config'); + } + + + + /** + * @return Processes + * @throws ComponentException + */ + public function getRouter() + { + return $this->get('router'); + } + + + /** + * @return Processes + * @throws ComponentException + */ + public function getJwt() + { + return $this->get('jwt'); + } + + /** * @throws Exception */