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:
36
src/flextype/Support/Container.php
Normal file
36
src/flextype/Support/Container.php
Normal 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};
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user