mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
d0ff79ea60
- Removed old view system and started use of new query classes instead. - Finished off RelationMultiModelQuery but found it was less efficient than x-many queries due to the amount of tables being scanned. Adding now for history but will delete as not used. - Updated recently viewed to use same query system as popular items rather than running and joining x-entities queries. - Added "Most Viewed Faviourites" listing to homepages.
17 lines
413 B
PHP
17 lines
413 B
PHP
<?php namespace BookStack\Entities\Queries;
|
|
|
|
use BookStack\Auth\Permissions\PermissionService;
|
|
use BookStack\Entities\EntityProvider;
|
|
|
|
abstract class EntityQuery
|
|
{
|
|
protected function permissionService(): PermissionService
|
|
{
|
|
return app()->make(PermissionService::class);
|
|
}
|
|
|
|
protected function entityProvider(): EntityProvider
|
|
{
|
|
return app()->make(EntityProvider::class);
|
|
}
|
|
} |