diff --git a/Bootstraps/AbstractBootstrap.php b/Bootstraps/AbstractBootstrap.php deleted file mode 100644 index 729ca44..0000000 --- a/Bootstraps/AbstractBootstrap.php +++ /dev/null @@ -1,15 +0,0 @@ -getFiles(); $post = $reactRequest->getPost(); - $class = $this->bootstrap->requestClass(); + if ($this->bootstrap instanceof RequestClassProviderInterface) { + $class = $this->bootstrap->requestClass(); + } + else { + $class = '\Symfony\Component\HttpFoundation\Request'; + } $syRequest = new $class($query, $post, $attributes = [], $cookies, $files, $_SERVER, $reactRequest->getBody());