addInformation('Current implementation', get_class($cache)); $this->addRecommendation( 'Alchemy\Phrasea\Cache\ArrayCache' !== get_class($cache), 'ArrayCache should not be used in production', 'Configure a Cache Server' ); if (null !== $cache->getStats()) { foreach ($cache->getStats() as $name => $value) { $this->addInformation($name, $value); } } } /** * {@inheritdoc} * * @return CacheServerProbe */ public static function create(Application $app) { return new static($app['cache']); } }