本文整理匯總了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();
}