Symfony2 API
Class

Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector

class ConfigDataCollector extends DataCollector

ConfigDataCollector.

Methods

__construct(string $name = null, string $version = null)

Constructor.

setKernel(KernelInterface $kernel = null)

Sets the Kernel associated with this Request.

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

getApplicationName()

getApplicationVersion()

string getToken()

Gets the token.

string getSymfonyVersion()

Gets the Symfony version.

string getPhpVersion()

Gets the PHP version.

string getAppName()

Gets the application name.

string getEnv()

Gets the environment.

Boolean isDebug()

Returns true if the debug is enabled.

Boolean hasXDebug()

Returns true if the XDebug is enabled.

Boolean hasEAccelerator()

Returns true if EAccelerator is enabled.

Boolean hasApc()

Returns true if APC is enabled.

Boolean hasZendOpcache()

Returns true if Zend OPcache is enabled

Boolean hasXCache()

Returns true if XCache is enabled.

Boolean hasWinCache()

Returns true if WinCache is enabled.

Boolean hasAccelerator()

Returns true if any accelerator is enabled.

getBundles()

string getSapiName()

Gets the PHP SAPI name.

string getName()

Returns the name of the collector.

Details

at line 37
public __construct(string $name = null, string $version = null)

Constructor.

Parameters

string $name The name of the application using the web profiler
string $version The version of the application using the web profiler

at line 48
public setKernel(KernelInterface $kernel = null)

Sets the Kernel associated with this Request.

Parameters

KernelInterface $kernel A KernelInterface instance

at line 56
public collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request A Request instance
Response $response A Response instance
Exception $exception An Exception instance

at line 84
public getApplicationName()

at line 89
public getApplicationVersion()

at line 99
public string getToken()

Gets the token.

Return Value

string The token

at line 109
public string getSymfonyVersion()

Gets the Symfony version.

Return Value

string The Symfony version

at line 119
public string getPhpVersion()

Gets the PHP version.

Return Value

string The PHP version

at line 129
public string getAppName()

Gets the application name.

Return Value

string The application name

at line 139
public string getEnv()

Gets the environment.

Return Value

string The environment

at line 149
public Boolean isDebug()

Returns true if the debug is enabled.

Return Value

Boolean true if debug is enabled, false otherwise

at line 159
public Boolean hasXDebug()

Returns true if the XDebug is enabled.

Return Value

Boolean true if XDebug is enabled, false otherwise

at line 169
public Boolean hasEAccelerator()

Returns true if EAccelerator is enabled.

Return Value

Boolean true if EAccelerator is enabled, false otherwise

at line 179
public Boolean hasApc()

Returns true if APC is enabled.

Return Value

Boolean true if APC is enabled, false otherwise

at line 189
public Boolean hasZendOpcache()

Returns true if Zend OPcache is enabled

Return Value

Boolean true if Zend OPcache is enabled, false otherwise

at line 199
public Boolean hasXCache()

Returns true if XCache is enabled.

Return Value

Boolean true if XCache is enabled, false otherwise

at line 209
public Boolean hasWinCache()

Returns true if WinCache is enabled.

Return Value

Boolean true if WinCache is enabled, false otherwise

at line 219
public Boolean hasAccelerator()

Returns true if any accelerator is enabled.

Return Value

Boolean true if any accelerator is enabled, false otherwise

at line 224
public getBundles()

at line 234
public string getSapiName()

Gets the PHP SAPI name.

Return Value

string The environment

at line 242
public string getName()

Returns the name of the collector.

Return Value

string The collector name