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:
@@ -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}) {
|
||||
|
@@ -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}) {
|
||||
|
Reference in New Issue
Block a user