2021-06-26 11:23:15 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack\Entities\Queries;
|
2021-05-22 09:05:28 -04:00
|
|
|
|
2022-07-12 15:15:41 -04:00
|
|
|
use BookStack\Auth\Permissions\PermissionApplicator;
|
2021-05-22 09:05:28 -04:00
|
|
|
use BookStack\Entities\EntityProvider;
|
|
|
|
|
|
|
|
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
|
|
|
}
|