CacheCollectorPass
in package
implements
CompilerPassInterface
Inject a data collector to all the cache services to be able to get detailed statistics.
Tags
Interfaces, Classes and Traits
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Table of Contents
- $cachePoolRecorderInnerSuffix : mixed
- $cachePoolTag : mixed
- $dataCollectorCacheId : mixed
- __construct() : mixed
- process() : mixed
- You can modify the container here before it is dumped to PHP code.
- addToCollector() : mixed
Properties
$cachePoolRecorderInnerSuffix
private
mixed
$cachePoolRecorderInnerSuffix
$cachePoolTag
private
mixed
$cachePoolTag
$dataCollectorCacheId
private
mixed
$dataCollectorCacheId
Methods
__construct()
public
__construct([string $dataCollectorCacheId = 'data_collector.cache' ][, string $cachePoolTag = 'cache.pool' ][, string $cachePoolRecorderInnerSuffix = '.recorder_inner' ]) : mixed
Parameters
- $dataCollectorCacheId : string = 'data_collector.cache'
- $cachePoolTag : string = 'cache.pool'
- $cachePoolRecorderInnerSuffix : string = '.recorder_inner'
Return values
mixed —process()
You can modify the container here before it is dumped to PHP code.
public
process(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
Return values
mixed —addToCollector()
private
addToCollector(string $id, string $name, ContainerBuilder $container) : mixed
Parameters
- $id : string
- $name : string
- $container : ContainerBuilder