コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->checkHeader();
     $this->checkBody();
     $this->checkURL();
     $this->checkToken();
 }
コード例 #2
0
ファイル: Request.php プロジェクト: navtis/xerxes-pazpar2
 /**
  * Create Request object
  */
 public function __construct()
 {
     parent::__construct();
     $this->registry = Registry::getInstance();
     $this->extractQueryParams();
 }
コード例 #3
0
 /**
  * @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();
 }
コード例 #4
0
ファイル: Request.php プロジェクト: AlysonRodrigo/zf2-rest
 public function __construct()
 {
     parent::__construct();
     $this->setRawPostData(file_get_contents('php://input'));
 }