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

Flextype: Base Controller added

This commit is contained in:
Awilum
2019-04-19 10:51:38 +03:00
parent aa9d177248
commit 66ba345aeb

30
flextype/Controller.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
/**
* @package Flextype
*
* @author Sergey Romanenko <hello@romanenko.digital>
* @link http://romanenko.digital
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flextype;
class Controller
{
protected $container;
public function __construct($container)
{
$this->container = $container;
}
public function __get($property)
{
if ($this->container->{$property}) {
return $this->container->{$property};
}
}
}