当前位置: 首页>>代码示例>>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;未经允许,请勿转载。