當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Client::__construct方法代碼示例

本文整理匯總了PHP中Symfony\Component\BrowserKit\Client::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Client::__construct方法的具體用法?PHP Client::__construct怎麽用?PHP Client::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Symfony\Component\BrowserKit\Client的用法示例。


在下文中一共展示了Client::__construct方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * 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);
 }
開發者ID:TheTypoMaster,項目名稱:SPHERE-Framework,代碼行數:15,代碼來源:Client.php

示例2: __construct

    /**
     * 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;
    }
開發者ID:nysander,項目名稱:symfony,代碼行數:16,代碼來源:Client.php

示例3: __construct

 /**
  * 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);
 }
開發者ID:Jaymon,項目名稱:Montage,代碼行數:13,代碼來源:FrameworkClient.php

示例4: __construct

 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);
 }
開發者ID:dayax,項目名稱:wordpress-test,代碼行數:5,代碼來源:Client.php

示例5: __construct

 /**
  * 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
 }
開發者ID:rhubarbphp,項目名稱:rhubarb,代碼行數:14,代碼來源:RhubarbConnector.php

示例6: __construct

 public function __construct(array $zendConfig = array(), array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     $this->zendConfig = $zendConfig;
     parent::__construct($server, $history, $cookieJar);
 }
開發者ID:robo47,項目名稱:Goutte,代碼行數:5,代碼來源:Client.php

示例7: __construct

 public function __construct(Container $app, array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     $this->app = $app;
     parent::__construct($server, $history, $cookieJar);
 }
開發者ID:arisro,項目名稱:behat-lumen-extension,代碼行數:5,代碼來源:LumenClient.php

示例8: __construct

 public function __construct($server = array())
 {
     parent::__construct(array_merge($this->httpserver, $server));
 }
開發者ID:eureka2,項目名稱:g6k,代碼行數:4,代碼來源:DOMClient.php

示例9: __construct

 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);
 }
開發者ID:itlessons,項目名稱:php-application,代碼行數:6,代碼來源:Client.php

示例10: __construct

 public function __construct(array $server = array(), History $history = null, CookieJar $cookieJar = null)
 {
     parent::__construct($server, $history, $cookieJar);
     $this->curl = curl_init();
 }
開發者ID:rosstuck,項目名稱:Pok,代碼行數:5,代碼來源:CurlClient.php


注:本文中的Symfony\Component\BrowserKit\Client::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。