public function __construct() { parent::__construct(); $this->checkHeader(); $this->checkBody(); $this->checkURL(); $this->checkToken(); }
/** * Create Request object */ public function __construct() { parent::__construct(); $this->registry = Registry::getInstance(); $this->extractQueryParams(); }
/** * @param CookieReaderInterface $cookieReader * @param StringUtils $converter * @param UriInterface|string|null $uri */ public function __construct(CookieReaderInterface $cookieReader, StringUtils $converter, $uri = null) { $this->cookieReader = $cookieReader; if (null !== $uri) { if (!$uri instanceof UriInterface) { $uri = UriFactory::factory($uri); } if ($uri->isValid()) { $path = $uri->getPath(); $query = $uri->getQuery(); if (!empty($query)) { $path .= '?' . $query; } $this->setRequestUri($path); } else { throw new \InvalidArgumentException('Invalid URI provided to constructor'); } } $this->converter = $converter; parent::__construct(); }
public function __construct() { parent::__construct(); $this->setRawPostData(file_get_contents('php://input')); }