__construct() public method

Initialize public controller.
public __construct ( ) : null
return null
コード例 #1
0
ファイル: GalleryController.php プロジェクト: litecms/gallery
 /**
  * Constructor.
  *
  * @param type \Litecms\Gallery\Interfaces\GalleryRepositoryInterface $gallery
  *
  * @return type
  */
 public function __construct(GalleryRepositoryInterface $gallery)
 {
     $this->repository = $gallery;
     parent::__construct();
 }
コード例 #2
0
 /**
  * Constructor.
  *
  * @param type \Lavalite\Message\Interfaces\MessageRepositoryInterface $message
  *
  * @return type
  */
 public function __construct(MessageRepositoryInterface $message)
 {
     $this->repository = $message;
     parent::__construct();
 }
コード例 #3
0
 /**
  * Constructor.
  *
  * @param type \Lavalite\Page\Interfaces\PageInterface $page
  *
  * @return type
  */
 public function __construct(\Lavalite\Page\Interfaces\PageRepositoryInterface $page)
 {
     $this->model = $page;
     parent::__construct();
 }