<?php /** * @author jan huang <*****@*****.**> * @copyright 2016 * * @link https://www.github.com/janhuang * @link http://www.fast-d.cn/ */ use FastD\Http\ServerRequest; use FastD\Session\Session; include __DIR__ . '/../vendor/autoload.php'; $server = ServerRequest::createFromGlobals(); print_r($server);
/** * SwooleServerRequest constructor. * * @param array $get * @param array $post * @param array $files * @param array $cookie * @param array $server * @param $sessionHandler */ public function __construct(array $get, array $post, array $files, array $cookie, array $server, SessionHandler $sessionHandler = null) { parent::__construct($get, $post, $files, $cookie, $server, $sessionHandler); }