diff --git a/flextype/Controller.php b/flextype/Controller.php new file mode 100644 index 00000000..c3c07917 --- /dev/null +++ b/flextype/Controller.php @@ -0,0 +1,30 @@ + + * @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}; + } + } +}