コード例 #1
0
ファイル: Request.php プロジェクト: dw250100785/kanboard
 /**
  * Constructor
  *
  * @access public
  * @param  \Pimple\Container   $container
  */
 public function __construct(Container $container, array $server = array(), array $get = array(), array $post = array(), array $files = array(), array $cookies = array())
 {
     parent::__construct($container);
     $this->server = empty($server) ? $_SERVER : $server;
     $this->get = empty($get) ? $_GET : $get;
     $this->post = empty($post) ? $_POST : $post;
     $this->files = empty($files) ? $_FILES : $files;
     $this->cookies = empty($cookies) ? $_COOKIE : $cookies;
 }
コード例 #2
0
 /**
  * Constructor
  *
  * @access public
  * @param  \Pimple\Container   $container
  */
 public function __construct(Container $container)
 {
     parent::__construct($container);
     $this->transports = new Container();
 }
コード例 #3
0
 /**
  * Constructor
  *
  * @access public
  * @param  \Pimple\Container   $container
  */
 public function __construct(Container $container)
 {
     parent::__construct($container);
     $this->classes = new Container();
 }