__construct() public method

Constructor.
public __construct ( array $server = [], Symfony\Component\BrowserKit\History $history = null, Symfony\Component\BrowserKit\CookieJar $cookieJar = null )
$server array The server parameters (equivalent of $_SERVER)
$history Symfony\Component\BrowserKit\History A History instance to store the browser history
$cookieJar Symfony\Component\BrowserKit\CookieJar A CookieJar instance to store the cookies
Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param HttpKernelInterface $kernel    An HttpKernel instance
  * @param array               $server    The server parameters (equivalent of $_SERVER)
  * @param History             $history   A History instance to store the browser history
  * @param CookieJar           $cookieJar A CookieJar instance to store the cookies
  */
 public function __construct(HttpKernelInterface $kernel, array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     // These class properties must be set before calling the parent constructor, as it may depend on it.
     $this->kernel = $kernel;
     $this->followRedirects = false;
     parent::__construct($server, $history, $cookieJar);
 }
Exemplo n.º 2
0
    /**
     * Constructor.
     *
     * @param HttpKernelInterface $kernel    An HttpKernel instance
     * @param array               $server    The server parameters (equivalent of $_SERVER)
     * @param History             $history   A History instance to store the browser history
     * @param CookieJar           $cookieJar A CookieJar instance to store the cookies
     */
    public function __construct(HttpKernelInterface $kernel, array $server = array(), History $history = null, CookieJar $cookieJar = null)
    {
        $this->kernel = $kernel;

        parent::__construct($server, $history, $cookieJar);

        $this->followRedirects = false;
    }
Exemplo n.º 3
0
 /**
  * Constructor.
  *
  * @param HttpKernelInterface $kernel    An HttpKernel instance
  * @param array               $server    The server parameters (equivalent of $_SERVER)
  * @param History             $history   A History instance to store the browser history
  * @param CookieJar           $cookieJar A CookieJar instance to store the cookies
  */
 public function __construct(Framework $framework, array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     $this->framework = $framework;
     parent::__construct($server, $history, $cookieJar);
 }
Exemplo n.º 4
0
 public function __construct(array $server = array(), \Symfony\Component\BrowserKit\History $history = null, \Symfony\Component\BrowserKit\CookieJar $cookieJar = null)
 {
     parent::__construct($server, $history, $cookieJar);
     add_filter('wp_headers', array($this, 'onWpSendHeaders'), 999);
 }
Exemplo n.º 5
0
 /**
  * Constructor.
  *
  * @param array $server The server parameters (equivalent of $_SERVER)
  * @param History $history A History instance to store the browser history
  * @param CookieJar $cookieJar A CookieJar instance to store the cookies
  *
  * @api
  */
 public function __construct(array $server = [], History $history = null, CookieJar $cookieJar = null)
 {
     parent::__construct($server, $history, $cookieJar);
     // TODO: Change the autogenerated stub
 }
Exemplo n.º 6
0
 public function __construct(array $zendConfig = array(), array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     $this->zendConfig = $zendConfig;
     parent::__construct($server, $history, $cookieJar);
 }
Exemplo n.º 7
0
 public function __construct(Container $app, array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     $this->app = $app;
     parent::__construct($server, $history, $cookieJar);
 }
Exemplo n.º 8
0
 public function __construct($server = array())
 {
     parent::__construct(array_merge($this->httpserver, $server));
 }
Exemplo n.º 9
0
 public function __construct(Application $app, array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     $this->app = $app;
     $this->followRedirects = false;
     parent::__construct($server, $history, $cookieJar);
 }
Exemplo n.º 10
0
 public function __construct(array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     parent::__construct($server, $history, $cookieJar);
     $this->curl = curl_init();
 }