ConfigDataCollector

class ConfigDataCollector extends DataCollector implements LateDataCollectorInterface

Methods

serialize() from DataCollector
unserialize($data) from DataCollector
__construct(string $name = null, string $version = null)
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.

reset()

Resets this data collector to its initial state.

lateCollect()

Collects data as late as possible.

getApplicationName()
getApplicationVersion()
string getToken()

Gets the token.

string getSymfonyVersion()

Gets the Symfony version.

string getSymfonyState()

Returns the state of the current Symfony release.

string getSymfonyMinorVersion()

Returns the minor Symfony version used (without patch numbers of extra suffix like "RC", "beta", etc.).

string getSymfonyEom()

Returns the human redable date when this Symfony version ends its maintenance period.

string getSymfonyEol()

Returns the human redable date when this Symfony version reaches its "end of life" and won't receive bugs or security fixes.

string getPhpVersion()

Gets the PHP version.

string|null getPhpVersionExtra()

Gets the PHP version extra part.

int getPhpArchitecture()
string getPhpIntlLocale()
string getPhpTimezone()
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 hasApcu()

Returns true if APCu is enabled.

bool hasZendOpcache()

Returns true if Zend OPcache is enabled.

getBundles()
string getSapiName()

Gets the PHP SAPI name.

string getName()

Returns the name of the collector.

Details

serialize()

unserialize($data)

Parameters

$data

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

Parameters

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

setKernel(KernelInterface $kernel = null)

Sets the Kernel associated with this Request.

Parameters

KernelInterface $kernel

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

Collects data for the given Request and Response.

Parameters

Request $request
Response $response
Exception $exception

reset()

Resets this data collector to its initial state.

lateCollect()

Collects data as late as possible.

getApplicationName()

getApplicationVersion()

string getToken()

Gets the token.

Return Value

string The token

string getSymfonyVersion()

Gets the Symfony version.

Return Value

string The Symfony version

string getSymfonyState()

Returns the state of the current Symfony release.

Return Value

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

string getSymfonyMinorVersion()

Returns the minor Symfony version used (without patch numbers of extra suffix like "RC", "beta", etc.).

Return Value

string

string getSymfonyEom()

Returns the human redable date when this Symfony version ends its maintenance period.

Return Value

string

string getSymfonyEol()

Returns the human redable date when this Symfony version reaches its "end of life" and won't receive bugs or security fixes.

Return Value

string

string getPhpVersion()

Gets the PHP version.

Return Value

string The PHP version

string|null getPhpVersionExtra()

Gets the PHP version extra part.

Return Value

string|null The extra part

int getPhpArchitecture()

Return Value

int The PHP architecture as number of bits (e.g. 32 or 64)

string getPhpIntlLocale()

Return Value

string

string getPhpTimezone()

Return Value

string

string getAppName()

Gets the application name.

Return Value

string The application name

string getEnv()

Gets the environment.

Return Value

string The environment

bool isDebug()

Returns true if the debug is enabled.

Return Value

bool true if debug is enabled, false otherwise

bool hasXDebug()

Returns true if the XDebug is enabled.

Return Value

bool true if XDebug is enabled, false otherwise

bool hasApcu()

Returns true if APCu is enabled.

Return Value

bool true if APCu is enabled, false otherwise

bool hasZendOpcache()

Returns true if Zend OPcache is enabled.

Return Value

bool true if Zend OPcache is enabled, false otherwise

getBundles()

string getSapiName()

Gets the PHP SAPI name.

Return Value

string The environment

string getName()

Returns the name of the collector.

Return Value

string The collector name

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.html