public function write(TldrPage $page) { $this->output->writeln(""); $lines = explode(PHP_EOL, $page->getContent()); foreach ($lines as $line) { $this->writeLine($line); } $this->output->writeln(""); }
public function writeToCache(TldrPage $page) { $item = $this->pool->getItem($page->getPlatform() . "/" . $page->getName()); $item->lock(); $item->set($page); }