\DebugBar\BridgeCacheCacheCollector

Collects CacheCache operations

http://maximebf.github.io/CacheCache/

Example: $debugbar->addCollector(new CacheCacheCollector(CacheManager::get('default'))); // or $debugbar->addCollector(new CacheCacheCollector()); $debugbar['cache']->addCache(CacheManager::get('default'));

Summary

Methods
Properties
Constants
__construct()
addLogger()
getMessages()
collect()
getName()
getWidgets()
addCache()
No public properties found
No constants found
write()
$name
$records
$logger
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : 

Type

$records

$records : 

Type

$logger

$logger : 

Type

Methods

__construct()

__construct(\CacheCache\Cache|null  $cache = null, \Monolog\Logger|null  $logger = null, boolean  $level = \Monolog\Logger::DEBUG, boolean  $bubble = true) 

CacheCacheCollector constructor.

Parameters

\CacheCache\Cache|null $cache
\Monolog\Logger|null $logger
boolean $level
boolean $bubble

addLogger()

addLogger(\Monolog\Logger  $logger) 

Adds logger which messages you want to log

Parameters

\Monolog\Logger $logger

getMessages()

getMessages() : array

Returns collected messages

Returns

array

collect()

collect() : array

Called by the DebugBar when data needs to be collected

Returns

array

getName()

getName() : string

Returns the unique name of the collector

Returns

string

getWidgets()

getWidgets() : array

Returns a hash where keys are control names and their values an array of options as defined in {@see DebugBar\JavascriptRenderer::addControl()}

Returns

array

addCache()

addCache(\CacheCache\Cache  $cache) 

Parameters

\CacheCache\Cache $cache

write()

write(array  $record) 

Parameters

array $record