Exemplo n.º 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("");
 }
Exemplo n.º 2
0
 public function writeToCache(TldrPage $page)
 {
     $item = $this->pool->getItem($page->getPlatform() . "/" . $page->getName());
     $item->lock();
     $item->set($page);
 }