src/Config/Overload.php
<?php
/**
*
*/
namespace Mvc5\Config;
trait Overload
{
/**
*
*/
use Config;
/**
* @param string $name
* @return mixed
*/
function &offsetGet($name) : mixed
{
return $this->config[$name];
}
/**
* @param string $name
* @return mixed
*/
function &__get($name)
{
return $this->offsetGet($name);
}
}