From: Dan Brown Date: Tue, 25 Sep 2018 15:58:03 +0000 (+0100) Subject: Fleshed out entity provided and optimized imports X-Git-Tag: v0.24.2~3^2~14 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/257a5a23ecaf7ce779969d575ff8a0b976181d13 Fleshed out entity provided and optimized imports --- diff --git a/app/Actions/ActivityService.php b/app/Actions/ActivityService.php index 7b1046d22..37cd0a6a4 100644 --- a/app/Actions/ActivityService.php +++ b/app/Actions/ActivityService.php @@ -1,6 +1,5 @@ bookshelf = $bookshelf; + $this->book = $book; + $this->chapter = $chapter; + $this->page = $page; + $this->pageRevision = $pageRevision; + } + + /** + * Fetch all core entity types as an associated array + * with their basic names as the keys. + * @return Entity[] + */ + public function all() + { + return [ + 'bookshelf' => $this->bookshelf, + 'book' => $this->book, + 'chapter' => $this->chapter, + 'page' => $this->page, + ]; + } + + } \ No newline at end of file diff --git a/app/Entities/EntityRepo.php b/app/Entities/EntityRepo.php index 2031807ee..e2fe2307e 100644 --- a/app/Entities/EntityRepo.php +++ b/app/Entities/EntityRepo.php @@ -1,18 +1,11 @@