示例#1
0
文件: Pics.php 项目: acp3/cms
 /**
  * Pics constructor.
  *
  * @param \ACP3\Core\Controller\Context\FrontendContext      $context
  * @param \ACP3\Core\Date                                    $date
  * @param \ACP3\Modules\ACP3\Gallery\Model\Repository\GalleryRepository $galleryRepository
  * @param \ACP3\Modules\ACP3\Gallery\Cache                   $galleryCache
  */
 public function __construct(Core\Controller\Context\FrontendContext $context, Core\Date $date, Gallery\Model\Repository\GalleryRepository $galleryRepository, Gallery\Cache $galleryCache)
 {
     parent::__construct($context);
     $this->date = $date;
     $this->galleryRepository = $galleryRepository;
     $this->galleryCache = $galleryCache;
 }
示例#2
0
文件: Index.php 项目: acp3/cms
 /**
  * Index constructor.
  *
  * @param \ACP3\Core\Controller\Context\FrontendContext      $context
  * @param \ACP3\Core\Date                                    $date
  * @param \ACP3\Core\Pagination                              $pagination
  * @param \ACP3\Modules\ACP3\Gallery\Model\Repository\GalleryRepository $galleryRepository
  */
 public function __construct(Core\Controller\Context\FrontendContext $context, Core\Date $date, Core\Pagination $pagination, Gallery\Model\Repository\GalleryRepository $galleryRepository)
 {
     parent::__construct($context);
     $this->date = $date;
     $this->pagination = $pagination;
     $this->galleryRepository = $galleryRepository;
 }
示例#3
0
文件: Image.php 项目: acp3/cms
 /**
  * Image constructor.
  *
  * @param \ACP3\Core\Controller\Context\FrontendContext      $context
  * @param \ACP3\Modules\ACP3\Gallery\Model\Repository\PictureRepository $pictureRepository
  */
 public function __construct(Core\Controller\Context\FrontendContext $context, Gallery\Model\Repository\PictureRepository $pictureRepository)
 {
     parent::__construct($context);
     $this->pictureRepository = $pictureRepository;
 }