[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/ -> Client.php (summary)

(no description)

File Size: 226 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Client:: (9 methods):
  __construct()
  getRequest()
  getResponse()
  doRequest()
  getScript()
  getHandleScript()
  filterRequest()
  filterFiles()
  filterResponse()


Class: Client  - X-Ref

Client simulates a browser and makes requests to a Kernel object.

__construct(HttpKernelInterface $kernel, array $server = array()   X-Ref
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

getRequest()   X-Ref
{@inheritdoc}

return: Request|null A Request instance

getResponse()   X-Ref
{@inheritdoc}

return: Response|null A Response instance

doRequest($request)   X-Ref
Makes a request.

param: Request $request A Request instance
return: Response A Response instance

getScript($request)   X-Ref
Returns the script to execute when the request must be insulated.

param: Request $request A Request instance
return: string

getHandleScript()   X-Ref
No description

filterRequest(DomRequest $request)   X-Ref
Converts the BrowserKit request to a HttpKernel request.

param: DomRequest $request A DomRequest instance
return: Request A Request instance

filterFiles(array $files)   X-Ref
Filters an array of files.

This method created test instances of UploadedFile so that the move()
method can be called on those instances.

If the size of a file is greater than the allowed size (from php.ini) then
an invalid UploadedFile is returned with an error set to UPLOAD_ERR_INI_SIZE.

param: array $files An array of files
return: array An array with all uploaded files marked as already moved

filterResponse($response)   X-Ref
Converts the HttpKernel response to a BrowserKit response.

param: Response $response A Response instance
return: DomResponse A DomResponse instance



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1