mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-10 16:58:34 +02:00
27 lines
393 B
PHP
27 lines
393 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use DI\Container;
|
|
|
|
/**
|
|
* Controller
|
|
*
|
|
* @author Hezekiah O. <support@hezecom.com>
|
|
*/
|
|
class Controller
|
|
{
|
|
protected $container;
|
|
|
|
public function __construct(Container $container)
|
|
{
|
|
$this->container = $container;
|
|
}
|
|
|
|
public function __get($property)
|
|
{
|
|
if ($this->container->get($property)) {
|
|
return $this->container->get($property);
|
|
}
|
|
}
|
|
}
|