ConfigDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Interfaces, Classes and Traits
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $cloner : ClonerInterface
- $kernel : KernelInterface
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getBundles() : mixed
- getEnv() : string
- Gets the environment.
- getName() : string
- {@inheritdoc}
- getPhpArchitecture() : int
- getPhpIntlLocale() : string
- getPhpTimezone() : string
- getPhpVersion() : string
- Gets the PHP version.
- getPhpVersionExtra() : string|null
- Gets the PHP version extra part.
- getSapiName() : string
- Gets the PHP SAPI name.
- getSymfonyEol() : string
- Returns the human readable date when this Symfony version reaches its "end of life" and won't receive bugs or security fixes.
- getSymfonyEom() : string
- Returns the human readable date when this Symfony version ends its maintenance period.
- getSymfonyMinorVersion() : string
- Returns the minor Symfony version used (without patch numbers of extra suffix like "RC", "beta", etc.).
- getSymfonyState() : string
- Returns the state of the current Symfony release.
- getSymfonyVersion() : string
- Gets the Symfony version.
- getToken() : string|null
- Gets the token.
- hasApcu() : bool
- Returns true if APCu is enabled.
- hasXDebug() : bool
- Returns true if the XDebug is enabled.
- hasZendOpcache() : bool
- Returns true if Zend OPcache is enabled.
- isDebug() : bool|string
- Returns true if the debug is enabled.
- isSymfonyLts() : bool
- Returns if the current Symfony version is a Long-Term Support one.
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- setKernel() : mixed
- Sets the Kernel associated with this Request.
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- determineSymfonyState() : string
- Tries to retrieve information about the current Symfony version.
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
ClonerInterface
$cloner
$kernel
private
KernelInterface
$kernel
Methods
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__wakeup()
public
__wakeup() : mixed
Return values
mixed —collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable|null $exception = null ]) : mixed
Parameters
Return values
mixed —getBundles()
public
getBundles() : mixed
Return values
mixed —getEnv()
Gets the environment.
public
getEnv() : string
Return values
string —getName()
{@inheritdoc}
public
getName() : string
Return values
string —getPhpArchitecture()
public
getPhpArchitecture() : int
Return values
int —The PHP architecture as number of bits (e.g. 32 or 64)
getPhpIntlLocale()
public
getPhpIntlLocale() : string
Return values
string —getPhpTimezone()
public
getPhpTimezone() : string
Return values
string —getPhpVersion()
Gets the PHP version.
public
getPhpVersion() : string
Return values
string —getPhpVersionExtra()
Gets the PHP version extra part.
public
getPhpVersionExtra() : string|null
Return values
string|null —getSapiName()
Gets the PHP SAPI name.
public
getSapiName() : string
Return values
string —getSymfonyEol()
Returns the human readable date when this Symfony version reaches its "end of life" and won't receive bugs or security fixes.
public
getSymfonyEol() : string
Return values
string —getSymfonyEom()
Returns the human readable date when this Symfony version ends its maintenance period.
public
getSymfonyEom() : string
Return values
string —getSymfonyMinorVersion()
Returns the minor Symfony version used (without patch numbers of extra suffix like "RC", "beta", etc.).
public
getSymfonyMinorVersion() : string
Return values
string —getSymfonyState()
Returns the state of the current Symfony release.
public
getSymfonyState() : string
Return values
string —One of: unknown, dev, stable, eom, eol
getSymfonyVersion()
Gets the Symfony version.
public
getSymfonyVersion() : string
Return values
string —getToken()
Gets the token.
public
getToken() : string|null
Return values
string|null —hasApcu()
Returns true if APCu is enabled.
public
hasApcu() : bool
Return values
bool —hasXDebug()
Returns true if the XDebug is enabled.
public
hasXDebug() : bool
Return values
bool —hasZendOpcache()
Returns true if Zend OPcache is enabled.
public
hasZendOpcache() : bool
Return values
bool —isDebug()
Returns true if the debug is enabled.
public
isDebug() : bool|string
Return values
bool|string —true if debug is enabled, false otherwise or a string if no kernel was set
isSymfonyLts()
Returns if the current Symfony version is a Long-Term Support one.
public
isSymfonyLts() : bool
Return values
bool —lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
Return values
mixed —reset()
{@inheritdoc}
public
reset() : mixed
Return values
mixed —setKernel()
Sets the Kernel associated with this Request.
public
setKernel([KernelInterface|null $kernel = null ]) : mixed
Parameters
- $kernel : KernelInterface|null = null
Return values
mixed —cloneVar()
Converts the variable into a serializable Data instance.
protected
cloneVar(mixed $var) : Data
This array can be displayed in the template using the VarDumper component.
Parameters
- $var : mixed
Return values
Data —getCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner
determineSymfonyState()
Tries to retrieve information about the current Symfony version.
private
determineSymfonyState() : string
Return values
string —One of: dev, stable, eom, eol