From 2f5fce57622a25b467f1f7c15f4c2b94d1f23688 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 7 Jun 2019 13:57:39 +0300 Subject: [PATCH] Flextype Core: update base Middleware class #117 --- flextype/Middleware.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flextype/Middleware.php b/flextype/Middleware.php index b4ade0f0..d6ca4417 100644 --- a/flextype/Middleware.php +++ b/flextype/Middleware.php @@ -20,4 +20,11 @@ class Middleware { $this->container = $container; } + + public function __get($property) + { + if ($this->container->{$property}) { + return $this->container->{$property}; + } + } }