PHP Class Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector

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

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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 méthode

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

getAppName() public méthode

Gets the application name.
public getAppName ( ) : string
Résultat string The application name

getApplicationName() public méthode

public getApplicationName ( )

getApplicationVersion() public méthode

getBundles() public méthode

public getBundles ( )

getEnv() public méthode

Gets the environment.
public getEnv ( ) : string
Résultat string The environment

getName() public méthode

public getName ( )

getPhpArchitecture() public méthode

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

getPhpIntlLocale() public méthode

public getPhpIntlLocale ( ) : string
Résultat string

getPhpTimezone() public méthode

public getPhpTimezone ( ) : string
Résultat string

getPhpVersion() public méthode

Gets the PHP version.
public getPhpVersion ( ) : string
Résultat string The PHP version

getPhpVersionExtra() public méthode

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

getSapiName() public méthode

Gets the PHP SAPI name.
public getSapiName ( ) : string
Résultat string The environment

getSymfonyEol() public méthode

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
Résultat string

getSymfonyEom() public méthode

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

getSymfonyMinorVersion() public méthode

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

getSymfonyState() public méthode

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

getSymfonyVersion() public méthode

Gets the Symfony version.
public getSymfonyVersion ( ) : string
Résultat string The Symfony version

getToken() public méthode

Gets the token.
public getToken ( ) : string
Résultat string The token

hasApcu() public méthode

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

hasXDebug() public méthode

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

hasZendOpcache() public méthode

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

isDebug() public méthode

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

setKernel() public méthode

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