1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-13 16:44:36 +02:00

fix(core): Fix all namespaces #437

This commit is contained in:
Awilum
2020-07-22 09:41:27 +03:00
parent 8111c3b8bc
commit 1785d603b8

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
/**
* Flextype (https://flextype.org)
* Founded by Sergey Romanenko and maintained by Flextype Community.
*/
namespace Flextype\Support;
class Container
{
/**
* Flextype Dependency Container
*/
protected $container;
/**
* __construct
*/
public function __construct($container)
{
$this->container = $container;
}
/**
* __get
*/
public function __get($property)
{
if ($this->container->{$property}) {
return $this->container->{$property};
}
}
}