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