0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-18 22:31:04 +00:00

Moved models to folder, renamed managers to tools

Tools seems to fit better since the classes were a bit of a mixed bunch
and did not always manage.
Also simplified the structure of the SlugGenerator class.
Also focused EntityContext on shelves and simplified to use session
helper.
This commit is contained in:
Dan Brown 2020-11-21 23:20:54 +00:00
parent 66917520cb
commit c7a2d568bf
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
45 changed files with 52 additions and 95 deletions
app/Http/Controllers

View file

@ -2,7 +2,7 @@
use Activity;
use BookStack\Entities\Book;
use BookStack\Entities\Managers\EntityContext;
use BookStack\Entities\Tools\ShelfContext;
use BookStack\Entities\Repos\BookshelfRepo;
use BookStack\Exceptions\ImageUploadException;
use BookStack\Exceptions\NotFoundException;
@ -22,7 +22,7 @@ class BookshelfController extends Controller
/**
* BookController constructor.
*/
public function __construct(BookshelfRepo $bookshelfRepo, EntityContext $entityContextManager, ImageRepo $imageRepo)
public function __construct(BookshelfRepo $bookshelfRepo, ShelfContext $entityContextManager, ImageRepo $imageRepo)
{
$this->bookshelfRepo = $bookshelfRepo;
$this->entityContextManager = $entityContextManager;