2021-06-26 15:23:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack\Entities\Queries;
|
2021-05-22 14:05:28 +01:00
|
|
|
|
|
|
|
use BookStack\Entities\EntityProvider;
|
2024-02-04 14:39:01 +00:00
|
|
|
use BookStack\Entities\Tools\MixedEntityListLoader;
|
2023-05-17 17:56:55 +01:00
|
|
|
use BookStack\Permissions\PermissionApplicator;
|
2021-05-22 14:05:28 +01:00
|
|
|
|
|
|
|
abstract class EntityQuery
|
|
|
|
{
|
2024-02-04 14:39:01 +00:00
|
|
|
protected function mixedEntityListLoader(): MixedEntityListLoader
|
|
|
|
{
|
|
|
|
return app()->make(MixedEntityListLoader::class);
|
|
|
|
}
|
|
|
|
|
2022-07-12 20:15:41 +01:00
|
|
|
protected function permissionService(): PermissionApplicator
|
2021-05-22 14:05:28 +01:00
|
|
|
{
|
2022-07-12 20:15:41 +01:00
|
|
|
return app()->make(PermissionApplicator::class);
|
2021-05-22 14:05:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function entityProvider(): EntityProvider
|
|
|
|
{
|
|
|
|
return app()->make(EntityProvider::class);
|
|
|
|
}
|
2021-06-26 15:23:15 +00:00
|
|
|
}
|