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