Beispiel #1
0
 /**
  * Create constructor.
  *
  * @param \ACP3\Core\Controller\Context\FrontendContext $context
  * @param \ACP3\Core\Helpers\Forms $formsHelper
  * @param \ACP3\Core\Helpers\FormToken $formTokenHelper
  * @param Guestbook\Model\GuestbookModel $guestbookModel
  * @param \ACP3\Modules\ACP3\Guestbook\Validation\FormValidation $formValidation
  */
 public function __construct(Core\Controller\Context\FrontendContext $context, Core\Helpers\Forms $formsHelper, Core\Helpers\FormToken $formTokenHelper, Guestbook\Model\GuestbookModel $guestbookModel, Guestbook\Validation\FormValidation $formValidation)
 {
     parent::__construct($context);
     $this->formsHelper = $formsHelper;
     $this->formTokenHelper = $formTokenHelper;
     $this->formValidation = $formValidation;
     $this->guestbookModel = $guestbookModel;
 }
Beispiel #2
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;
 }