for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* @author : Jagepard <[email protected]">
* @license https://mit-license.org/ MIT
*/
namespace Rudra\Container;
use Rudra\Container\{Interfaces\ContainerInterface, Interfaces\RequestInterface, Traits\InstantiationsTrait};
class Request implements RequestInterface
{
use InstantiationsTrait;
public function get(): ContainerInterface
return $this->instantiate("get", Container::class, $_GET);
}
public function post(): ContainerInterface
return $this->instantiate("post", Container::class, $_POST);
public function put(): ContainerInterface
return $this->instantiate("put", Container::class);
public function patch(): ContainerInterface
return $this->instantiate("patch", Container::class);
public function delete(): ContainerInterface
return $this->instantiate("delete", Container::class);
public function server(): ContainerInterface
return $this->instantiate("server", Container::class, $_SERVER);
public function files(): Files
return $this->instantiate("files", Files::class, $_FILES);