PHP 클래스 Symfony\Component\HttpKernel\Client

저자: Fabien Potencier ([email protected])
상속: extends Symfony\Component\BrowserKit\Client
파일 보기 프로젝트 열기: symfony/symfony 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$kernel

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, array $server = [], Symfony\Component\BrowserKit\History $history = null, Symfony\Component\BrowserKit\CookieJar $cookieJar = null ) Constructor.
getRequest ( ) : Request | null
getResponse ( ) : Response | null

보호된 메소드들

메소드 설명
doRequest ( Request $request ) : Response Makes a request.
filterFiles ( array $files ) : array Filters an array of files.
filterRequest ( Symfony\Component\BrowserKit\Request $request ) : Request Converts the BrowserKit request to a HttpKernel request.
filterResponse ( Response $response ) : Symfony\Component\BrowserKit\Response Converts the HttpKernel response to a BrowserKit response.
getHandleScript ( )
getScript ( Request $request ) : string Returns the script to execute when the request must be insulated.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, array $server = [], Symfony\Component\BrowserKit\History $history = null, Symfony\Component\BrowserKit\CookieJar $cookieJar = null )
$kernel Symfony\Component\HttpKernel\HttpKernelInterface An HttpKernel instance
$server array The server parameters (equivalent of $_SERVER)
$history Symfony\Component\BrowserKit\History A History instance to store the browser history
$cookieJar Symfony\Component\BrowserKit\CookieJar A CookieJar instance to store the cookies

doRequest() 보호된 메소드

Makes a request.
protected doRequest ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request A Request instance
리턴 Symfony\Component\HttpFoundation\Response A Response instance

filterFiles() 보호된 메소드

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.
또한 보기: UploadedFile
protected filterFiles ( array $files ) : array
$files array An array of files
리턴 array An array with all uploaded files marked as already moved

filterRequest() 보호된 메소드

Converts the BrowserKit request to a HttpKernel request.
protected filterRequest ( Symfony\Component\BrowserKit\Request $request ) : Request
$request Symfony\Component\BrowserKit\Request A DomRequest instance
리턴 Symfony\Component\HttpFoundation\Request A Request instance

filterResponse() 보호된 메소드

Converts the HttpKernel response to a BrowserKit response.
protected filterResponse ( Response $response ) : Symfony\Component\BrowserKit\Response
$response Symfony\Component\HttpFoundation\Response A Response instance
리턴 Symfony\Component\BrowserKit\Response A DomResponse instance

getHandleScript() 보호된 메소드

protected getHandleScript ( )

getRequest() 공개 메소드

public getRequest ( ) : Request | null
리턴 Symfony\Component\HttpFoundation\Request | null A Request instance

getResponse() 공개 메소드

public getResponse ( ) : Response | null
리턴 Symfony\Component\HttpFoundation\Response | null A Response instance

getScript() 보호된 메소드

Returns the script to execute when the request must be insulated.
protected getScript ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request A Request instance
리턴 string

프로퍼티 상세

$kernel 보호되어 있는 프로퍼티

protected $kernel