Mongolid\Container\Ioc::__callStatic PHP Method

__callStatic() public static method

Handle dynamic, static calls to the object.
public static __callStatic ( string $method, array $args ) : mixed
$method string Method that is being called.
$args array Method arguments.
return mixed
    public static function __callStatic(string $method, array $args)
    {
        $instance = static::$container;
        return $instance->{$method}(...$args);
    }