本文整理汇总了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);
}
示例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;
}
示例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);
}
示例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);
}
示例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
}
示例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);
}
示例7: __construct
public function __construct(Container $app, array $server = array(), History $history = null, CookieJar $cookieJar = null)
{
$this->app = $app;
parent::__construct($server, $history, $cookieJar);
}
示例8: __construct
public function __construct($server = array())
{
parent::__construct(array_merge($this->httpserver, $server));
}
示例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);
}
示例10: __construct
public function __construct(array $server = array(), History $history = null, CookieJar $cookieJar = null)
{
parent::__construct($server, $history, $cookieJar);
$this->curl = curl_init();
}