Пример #1
0
 /**
  * Index constructor.
  *
  * @param \ACP3\Core\Controller\Context\FrontendContext $context
  * @param \ACP3\Core\Pagination $pagination
  * @param \ACP3\Modules\ACP3\Guestbook\Model\Repository\GuestbookRepository $guestbookRepository
  */
 public function __construct(Core\Controller\Context\FrontendContext $context, Core\Pagination $pagination, Guestbook\Model\Repository\GuestbookRepository $guestbookRepository)
 {
     parent::__construct($context);
     $this->pagination = $pagination;
     $this->guestbookRepository = $guestbookRepository;
 }
Пример #2
0
 public function preDispatch()
 {
     parent::preDispatch();
     $this->newsletterActive = $this->guestbookSettings['newsletter_integration'] == 1;
 }