diff --git a/App/Webapi/Request.php b/App/Webapi/Request.php new file mode 100644 index 0000000..b242523 --- /dev/null +++ b/App/Webapi/Request.php @@ -0,0 +1,91 @@ +setEnv(new Parameters($_ENV)); + $this->serverParams = new Parameters($_SERVER); + $this->setQuery(new Parameters([])); + $this->setPost(new Parameters([])); + $this->setFiles(new Parameters([])); + $this->module = null; + $this->controller = null; + $this->action = null; + $this->pathInfo = ''; + $this->requestString = ''; + $this->params = []; + $this->aliases = []; + $this->dispatched = false; + $this->forwarded = null; + $this->baseUrl = null; + $this->basePath = null; + $this->requestUri = null; + $this->method = 'GET'; + $this->allowCustomMethods = true; + $this->uri = null; + $this->headers = null; + $this->metadata = []; + $this->content = ''; + } +} diff --git a/etc/di.xml b/etc/di.xml index e9a023b..5d73e61 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -6,6 +6,7 @@ */ --> +