PHP Class Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector

Author: Fabien Potencier ([email protected])
Inheritance: extends DataCollector
Show file Open project: symfony/symfony Class Usage Examples

Public Methods

Method Description
__construct ( string $name = null, string $version = null ) Constructor.
collect ( Request $request, Response $response, Exception $exception = null )
getAppName ( ) : string Gets the application name.
getApplicationName ( )
getApplicationVersion ( )
getBundles ( )
getEnv ( ) : string Gets the environment.
getName ( )
getPhpArchitecture ( ) : integer
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 Gets the token.
hasApcu ( ) : boolean Returns true if APCu is enabled.
hasXDebug ( ) : boolean Returns true if the XDebug is enabled.
hasZendOpcache ( ) : boolean Returns true if Zend OPcache is enabled.
isDebug ( ) : boolean Returns true if the debug is enabled.
setKernel ( Symfony\Component\HttpKernel\KernelInterface $kernel = null ) Sets the Kernel associated with this Request.

Private Methods

Method Description
determineSymfonyState ( ) : string Tries to retrieve information about the current Symfony version.

Method Details

__construct() public method

Constructor.
public __construct ( string $name = null, string $version = null )
$name string The name of the application using the web profiler
$version string The version of the application using the web profiler

collect() public method

public collect ( Request $request, Response $response, Exception $exception = null )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
$exception Exception

getAppName() public method

Gets the application name.
public getAppName ( ) : string
return string The application name

getApplicationName() public method

public getApplicationName ( )

getApplicationVersion() public method

getBundles() public method

public getBundles ( )

getEnv() public method

Gets the environment.
public getEnv ( ) : string
return string The environment

getName() public method

public getName ( )

getPhpArchitecture() public method

public getPhpArchitecture ( ) : integer
return integer The PHP architecture as number of bits (e.g. 32 or 64)

getPhpIntlLocale() public method

public getPhpIntlLocale ( ) : string
return string

getPhpTimezone() public method

public getPhpTimezone ( ) : string
return string

getPhpVersion() public method

Gets the PHP version.
public getPhpVersion ( ) : string
return string The PHP version

getPhpVersionExtra() public method

Gets the PHP version extra part.
public getPhpVersionExtra ( ) : string | null
return string | null The extra part

getSapiName() public method

Gets the PHP SAPI name.
public getSapiName ( ) : string
return string The environment

getSymfonyEol() public method

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 string

getSymfonyEom() public method

Returns the human redable date when this Symfony version ends its maintenance period.
public getSymfonyEom ( ) : string
return string

getSymfonyMinorVersion() public method

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

getSymfonyState() public method

Returns the state of the current Symfony release.
public getSymfonyState ( ) : string
return string One of: unknown, dev, stable, eom, eol

getSymfonyVersion() public method

Gets the Symfony version.
public getSymfonyVersion ( ) : string
return string The Symfony version

getToken() public method

Gets the token.
public getToken ( ) : string
return string The token

hasApcu() public method

Returns true if APCu is enabled.
public hasApcu ( ) : boolean
return boolean true if APCu is enabled, false otherwise

hasXDebug() public method

Returns true if the XDebug is enabled.
public hasXDebug ( ) : boolean
return boolean true if XDebug is enabled, false otherwise

hasZendOpcache() public method

Returns true if Zend OPcache is enabled.
public hasZendOpcache ( ) : boolean
return boolean true if Zend OPcache is enabled, false otherwise

isDebug() public method

Returns true if the debug is enabled.
public isDebug ( ) : boolean
return boolean true if debug is enabled, false otherwise

setKernel() public method

Sets the Kernel associated with this Request.
public setKernel ( Symfony\Component\HttpKernel\KernelInterface $kernel = null )
$kernel Symfony\Component\HttpKernel\KernelInterface A KernelInterface instance