Example #1
0
 /**
  * Details constructor.
  *
  * @param \ACP3\Core\Controller\Context\FrontendContext $context
  * @param \ACP3\Core\Date                               $date
  * @param \ACP3\Modules\ACP3\News\Model\Repository\NewsRepository  $newsRepository
  * @param \ACP3\Modules\ACP3\News\Cache                 $newsCache
  */
 public function __construct(Core\Controller\Context\FrontendContext $context, Core\Date $date, News\Model\Repository\NewsRepository $newsRepository, News\Cache $newsCache)
 {
     parent::__construct($context);
     $this->date = $date;
     $this->newsRepository = $newsRepository;
     $this->newsCache = $newsCache;
 }
Example #2
0
 /**
  * Index constructor.
  *
  * @param \ACP3\Core\Controller\Context\FrontendContext $context
  * @param \ACP3\Core\Date $date
  * @param \ACP3\Core\Helpers\StringFormatter $stringFormatter
  * @param \ACP3\Core\Pagination $pagination
  * @param \ACP3\Modules\ACP3\News\Model\Repository\NewsRepository $newsRepository
  * @param \ACP3\Modules\ACP3\Categories\Helpers $categoriesHelpers
  * @param \ACP3\Modules\ACP3\Categories\Model\Repository\CategoryRepository $categoryRepository
  */
 public function __construct(Core\Controller\Context\FrontendContext $context, Core\Date $date, Core\Helpers\StringFormatter $stringFormatter, Core\Pagination $pagination, News\Model\Repository\NewsRepository $newsRepository, Categories\Helpers $categoriesHelpers, Categories\Model\Repository\CategoryRepository $categoryRepository)
 {
     parent::__construct($context);
     $this->date = $date;
     $this->pagination = $pagination;
     $this->stringFormatter = $stringFormatter;
     $this->newsRepository = $newsRepository;
     $this->categoriesHelpers = $categoriesHelpers;
     $this->categoryRepository = $categoryRepository;
 }