Пример #1
0
 /**
  * BlogPaginationBuilder constructor.
  *
  * @param Filesystem $filesystem
  * @param Factory $viewFactory
  * @param array $viewsData
  */
 public function __construct(Filesystem $filesystem, Factory $viewFactory, array $viewsData, Channel $river)
 {
     $this->filesystem = $filesystem;
     $this->viewFactory = $viewFactory;
     $this->viewsData = $viewsData;
     $this->river = $river;
     $this->channel = $river->getChannel();
     $this->view = $river->getView();
     $this->paginationContainer = $river->getPaginationContainer();
     $this->postsPerPage = $river->getPostsPerPage() ?: 5;
     $this->container = $river->getContainer();
     $this->paginationView = $river->getPaginationView();
 }