26 lines
528 B
PHP
26 lines
528 B
PHP
<?php
|
|
namespace Base\Facade;
|
|
|
|
use Base\Tool\Request as BaseRequest;
|
|
|
|
/**
|
|
* @author elf<360197197@qq.com>
|
|
*/
|
|
class Request {
|
|
|
|
private static $instance;
|
|
|
|
public static function getInstance()
|
|
{
|
|
if (self::$instance == null) {
|
|
self::$instance = new BaseRequest();
|
|
}
|
|
return self::$instance;
|
|
}
|
|
|
|
public static function __callStatic($name, $arguments)
|
|
{
|
|
$instance = self::getInstance();
|
|
return call_user_func_array([$instance, $name], $arguments);
|
|
}
|
|
} |