ConfigDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Interfaces, Classes, Traits and Enums
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $cloner : ClonerInterface
- $kernel : KernelInterface
- $name : mixed
- $version : mixed
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getApplicationName() : mixed
- getApplicationVersion() : mixed
- getAppName() : string
- Gets the application name.
- getBundles() : mixed
- getEnv() : string
- Gets the environment.
- getName() : mixed
- {@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 redable date when this Symfony version reaches its "end of life" and won't receive bugs or security fixes.
- getSymfonyEom() : string
- Returns the human redable 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
- 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}
- serialize() : mixed
- setKernel() : mixed
- Sets the Kernel associated with this Request.
- unserialize() : mixed
- 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
$name
private
mixed
$name
$version
private
mixed
$version
Methods
__construct()
public
__construct([string $name = null ][, string $version = null ]) : mixed
Parameters
- $name : string = null
- $version : string = null
Return values
mixed —__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) : mixed
Parameters
Return values
mixed —getApplicationName()
public
getApplicationName() : mixed
Tags
Return values
mixed —getApplicationVersion()
public
getApplicationVersion() : mixed
Tags
Return values
mixed —getAppName()
Gets the application name.
public
getAppName() : string
Tags
Return values
string —The application name
getBundles()
public
getBundles() : mixed
Return values
mixed —getEnv()
Gets the environment.
public
getEnv() : string
Return values
string —The environment
getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —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 —The PHP version
getPhpVersionExtra()
Gets the PHP version extra part.
public
getPhpVersionExtra() : string|null
Return values
string|null —The extra part
getSapiName()
Gets the PHP SAPI name.
public
getSapiName() : string
Return values
string —The environment
getSymfonyEol()
Returns the human redable 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 redable 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 —The Symfony version
getToken()
Gets the token.
public
getToken() : string|null
Return values
string|null —The token
hasApcu()
Returns true if APCu is enabled.
public
hasApcu() : bool
Return values
bool —true if APCu is enabled, false otherwise
hasXDebug()
Returns true if the XDebug is enabled.
public
hasXDebug() : bool
Return values
bool —true if XDebug is enabled, false otherwise
hasZendOpcache()
Returns true if Zend OPcache is enabled.
public
hasZendOpcache() : bool
Return values
bool —true if Zend OPcache is enabled, false otherwise
isDebug()
Returns true if the debug is enabled.
public
isDebug() : bool
Return values
bool —true if debug is enabled, false otherwise
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 —serialize()
public
serialize() : mixed
Tags
Return values
mixed —setKernel()
Sets the Kernel associated with this Request.
public
setKernel([KernelInterface $kernel = null ]) : mixed
Parameters
- $kernel : KernelInterface = null
Return values
mixed —unserialize()
public
unserialize(mixed $data) : mixed
Parameters
- $data : mixed
Tags
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