for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Liip\MonitorBundle\Check;
use ZendDiagnostics\Check\CheckCollectionInterface;
use ZendDiagnostics\Check\Memcached;
/**
* @author Kevin Bond <[email protected]>
*/
class MemcachedCollection implements CheckCollectionInterface
{
private $checks = array();
public function __construct(array $configs)
foreach ($configs as $name => $config) {
$check = new Memcached($config['host'], $config['port']);
$check->setLabel(sprintf('Memcached "%s"', $name));
$this->checks[sprintf('memcached_%s', $name)] = $check;
}
* {@inheritdoc}
public function getChecks()
return $this->checks;