Example #1
0
 protected function createComponentPage()
 {
     return new Multiplier(function ($pageID) {
         $comp = $this->pageControlFactory->create($this->pages[$pageID][0]);
         $comp->setCommentsCount($this->pages[$pageID]['commentsCount']);
         $comp->onlyIntro();
         return $comp;
     });
 }
Example #2
0
 /**
  * @Actions show
  */
 protected function createComponentPage()
 {
     $comp = $this->pageFactory->create($this->page[0]);
     $comp->setCommentsCount($this->page['commentsCount']);
     return $comp;
 }