You are here

public function Client::setServerParameters in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::setServerParameters()

Sets server parameters.

Parameters

array $server An array of server parameters:

1 call to Client::setServerParameters()
Client::__construct in vendor/symfony/browser-kit/Client.php
Constructor.

File

vendor/symfony/browser-kit/Client.php, line 103

Class

Client
Client simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

public function setServerParameters(array $server) {
  $this->server = array_merge(array(
    'HTTP_HOST' => 'localhost',
    'HTTP_USER_AGENT' => 'Symfony2 BrowserKit',
  ), $server);
}