]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/EntityProvider.php
Code cleanup, bug squashing
[bookstack] / app / Entities / EntityProvider.php
index 1941b2b616c893c24b0ac6fe6ba83ea959ddd4df..ef1935a0f0fa9891aec03f7b7010317feedf8b0c 100644 (file)
@@ -42,21 +42,14 @@ class EntityProvider
      */
     public $pageRevision;
 
-    /**
-     * EntityProvider constructor.
-     */
-    public function __construct(
-        Bookshelf $bookshelf,
-        Book $book,
-        Chapter $chapter,
-        Page $page,
-        PageRevision $pageRevision
-    ) {
-        $this->bookshelf = $bookshelf;
-        $this->book = $book;
-        $this->chapter = $chapter;
-        $this->page = $page;
-        $this->pageRevision = $pageRevision;
+
+    public function __construct()
+    {
+        $this->bookshelf = new Bookshelf();
+        $this->book = new Book();
+        $this->chapter = new Chapter();
+        $this->page = new Page();
+        $this->pageRevision = new PageRevision();
     }
 
     /**