public setAdapter ( |
||
$adapter | ||
Résultat |
/** * Execute the console command. * * @return mixed */ public function handle() { opcache_reset(); $adapter = new FastCGI('/dev/shm/php-cgi.sock'); $cache = new CacheTool(); $cache->setAdapter($adapter); $cache->addProxy(new Proxy\OpcacheProxy()); $cache->addProxy(new Proxy\PhpProxy()); $cache->opcache_reset(); echo 'a'; }
public function testLoggerWithAdapter() { $cachetool = new CacheTool(null, $this->getLogger()); $cachetool->setAdapter(new Adapter\Cli()); $cachetool->setLogger($this->getLogger()); }