Symfony API
Class

Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector

class ConfigDataCollector extends DataCollector

ConfigDataCollector.

Methods

serialize()

from DataCollector
unserialize($data)

from DataCollector
__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 getSymfonyState()

Returns the state of the current Symfony release.

setCacheVersionInfo($cacheVersionInfo)

string getPhpVersion()

Gets the PHP version.

string getAppName()

Gets the application name.

string getEnv()

Gets the environment.

bool isDebug()

Returns true if the debug is enabled.

bool hasXDebug()

Returns true if the XDebug is enabled.

bool hasEAccelerator()

Returns true if EAccelerator is enabled.

bool hasApc()

Returns true if APC is enabled.

bool hasZendOpcache()

Returns true if Zend OPcache is enabled.

bool hasXCache()

Returns true if XCache is enabled.

bool hasWinCache()

Returns true if WinCache is enabled.

bool 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

in DataCollector at line 33
public serialize()

in DataCollector at line 38
public unserialize($data)

Parameters

$data

at line 40
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 51
public setKernel(KernelInterface $kernel = null)

Sets the Kernel associated with this Request.

Parameters

KernelInterface $kernel A KernelInterface instance

at line 59
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 90
public getApplicationName()

at line 95
public getApplicationVersion()

at line 105
public string getToken()

Gets the token.

Return Value

string The token

at line 115
public string getSymfonyVersion()

Gets the Symfony version.

Return Value

string The Symfony version

at line 125
public string getSymfonyState()

Returns the state of the current Symfony release.

Return Value

string One of: unknown, dev, stable, eom, eol

at line 130
public setCacheVersionInfo($cacheVersionInfo)

Parameters

$cacheVersionInfo

at line 140
public string getPhpVersion()

Gets the PHP version.

Return Value

string The PHP version

at line 150
public string getAppName()

Gets the application name.

Return Value

string The application name

at line 160
public string getEnv()

Gets the environment.

Return Value

string The environment

at line 170
public bool isDebug()

Returns true if the debug is enabled.

Return Value

bool true if debug is enabled, false otherwise

at line 180
public bool hasXDebug()

Returns true if the XDebug is enabled.

Return Value

bool true if XDebug is enabled, false otherwise

at line 190
public bool hasEAccelerator()

Returns true if EAccelerator is enabled.

Return Value

bool true if EAccelerator is enabled, false otherwise

at line 200
public bool hasApc()

Returns true if APC is enabled.

Return Value

bool true if APC is enabled, false otherwise

at line 210
public bool hasZendOpcache()

Returns true if Zend OPcache is enabled.

Return Value

bool true if Zend OPcache is enabled, false otherwise

at line 220
public bool hasXCache()

Returns true if XCache is enabled.

Return Value

bool true if XCache is enabled, false otherwise

at line 230
public bool hasWinCache()

Returns true if WinCache is enabled.

Return Value

bool true if WinCache is enabled, false otherwise

at line 240
public bool hasAccelerator()

Returns true if any accelerator is enabled.

Return Value

bool true if any accelerator is enabled, false otherwise

at line 245
public getBundles()

at line 255
public string getSapiName()

Gets the PHP SAPI name.

Return Value

string The environment

at line 263
public string getName()

Returns the name of the collector.

Return Value

string The collector name