From 2736a317deb72427fb3f1f4343b996c6a2a9c0ba Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 17 Aug 2019 23:44:06 +0300 Subject: [PATCH] Flextype Core: base controller and base middleware - upd --- flextype/core/Controller.php | 9 +++++++++ flextype/core/Middleware.php | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/flextype/core/Controller.php b/flextype/core/Controller.php index f85534b4..678a39d3 100644 --- a/flextype/core/Controller.php +++ b/flextype/core/Controller.php @@ -11,13 +11,22 @@ namespace Flextype; class Controller { + /** + * Flextype Dependency Container + */ protected $container; + /** + * __construct + */ public function __construct($container) { $this->container = $container; } + /** + * __get + */ public function __get($property) { if ($this->container->{$property}) { diff --git a/flextype/core/Middleware.php b/flextype/core/Middleware.php index e009d5a3..d5136899 100644 --- a/flextype/core/Middleware.php +++ b/flextype/core/Middleware.php @@ -11,13 +11,22 @@ namespace Flextype; class Middleware { + /** + * Flextype Dependency Container + */ protected $container; + /** + * __construct + */ public function __construct($container) { $this->container = $container; } + /** + * __get + */ public function __get($property) { if ($this->container->{$property}) {