PHP Class Symfony\Bundle\FrameworkBundle\Client

Author: Fabien Potencier ([email protected])
Inheritance: extends Symfony\Component\HttpKernel\Client
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface Returns the container.
getKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface Returns the kernel.
getProfile ( ) : Symfony\Component\HttpKernel\Profiler\Profile Gets the profile associated with the current Response.

Protected Methods

Method Description
doRequest ( Request $request ) : Response Makes a request.
getScript ( Request $request ) : string Returns the script to execute when the request must be insulated.

Method Details

doRequest() protected method

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

getContainer() public method

Returns the container.
public getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
return Symfony\Component\DependencyInjection\ContainerInterface

getKernel() public method

Returns the kernel.
public getKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface
return Symfony\Component\HttpKernel\HttpKernelInterface

getProfile() public method

Gets the profile associated with the current Response.
public getProfile ( ) : Symfony\Component\HttpKernel\Profiler\Profile
return Symfony\Component\HttpKernel\Profiler\Profile A Profile instance

getScript() protected method

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