예제 #1
0
 /**
  * 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();
 }