Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  *
  * @access public
  * @param  \Pimple\Container   $container
  */
 public function __construct(Container $container)
 {
     parent::__construct($container);
     $this->transports = new Container();
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  *
  * @access public
  * @param  \Pimple\Container   $container
  */
 public function __construct(Container $container)
 {
     parent::__construct($container);
     $this->classes = new Container();
 }