示例#1
0
 /**
  * @param \ACP3\Core\Controller\Context\FrontendContext $context
  * @param Comments\Model\CommentsModel $commentsModel
  * @param \ACP3\Modules\ACP3\Comments\Validation\FormValidation $formValidation
  * @param \ACP3\Core\Helpers\FormToken $formTokenHelper
  */
 public function __construct(Core\Controller\Context\FrontendContext $context, Comments\Model\CommentsModel $commentsModel, Comments\Validation\FormValidation $formValidation, Core\Helpers\FormToken $formTokenHelper)
 {
     parent::__construct($context);
     $this->formValidation = $formValidation;
     $this->formTokenHelper = $formTokenHelper;
     $this->commentsModel = $commentsModel;
 }
示例#2
0
 /**
  * @param \ACP3\Core\Controller\Context\FrontendContext $context
  * @param \ACP3\Core\Pagination $pagination
  * @param \ACP3\Modules\ACP3\Comments\Model\Repository\CommentRepository $commentRepository
  */
 public function __construct(Core\Controller\Context\FrontendContext $context, Core\Pagination $pagination, Comments\Model\Repository\CommentRepository $commentRepository)
 {
     parent::__construct($context);
     $this->pagination = $pagination;
     $this->commentRepository = $commentRepository;
 }