__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
コード例 #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);
 }
コード例 #2
0
ファイル: Client.php プロジェクト: nysander/symfony
    /**
     * 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;
    }
コード例 #3
0
ファイル: FrameworkClient.php プロジェクト: Jaymon/Montage
 /**
  * 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);
 }
コード例 #4
0
ファイル: Client.php プロジェクト: dayax/wordpress-test
 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);
 }
コード例 #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
 }
コード例 #6
0
ファイル: Client.php プロジェクト: robo47/Goutte
 public function __construct(array $zendConfig = array(), array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     $this->zendConfig = $zendConfig;
     parent::__construct($server, $history, $cookieJar);
 }
コード例 #7
0
 public function __construct(Container $app, array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     $this->app = $app;
     parent::__construct($server, $history, $cookieJar);
 }
コード例 #8
0
ファイル: DOMClient.php プロジェクト: eureka2/g6k
 public function __construct($server = array())
 {
     parent::__construct(array_merge($this->httpserver, $server));
 }
コード例 #9
0
ファイル: Client.php プロジェクト: itlessons/php-application
 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);
 }
コード例 #10
0
ファイル: CurlClient.php プロジェクト: rosstuck/Pok
 public function __construct(array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     parent::__construct($server, $history, $cookieJar);
     $this->curl = curl_init();
 }