1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-19 03:11:21 +02:00

Flextype Core: base controller and base middleware - upd

This commit is contained in:
Awilum
2019-08-17 23:44:06 +03:00
parent b816ffece1
commit 2736a317de
2 changed files with 18 additions and 0 deletions

View File

@@ -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}) {

View File

@@ -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}) {