BookStack\Repos\EntityRepo::__construct PHP Method

__construct() public method

EntityService constructor.
public __construct ( )
    public function __construct()
    {
        $this->book = app(Book::class);
        $this->chapter = app(Chapter::class);
        $this->page = app(Page::class);
        $this->permissionService = app(PermissionService::class);
    }

Usage Example

示例#1
0
 /**
  * PageRepo constructor.
  * @param PageRevision $pageRevision
  * @param TagRepo $tagRepo
  */
 public function __construct(PageRevision $pageRevision, TagRepo $tagRepo)
 {
     $this->pageRevision = $pageRevision;
     $this->tagRepo = $tagRepo;
     parent::__construct();
 }
All Usage Examples Of BookStack\Repos\EntityRepo::__construct