BookStack/app/Entities/Queries/EntityQuery.php

20 lines
419 B
PHP
Raw Normal View History

2021-06-26 23:23:15 +08:00
<?php
namespace BookStack\Entities\Queries;
use BookStack\Entities\EntityProvider;
2023-05-18 00:56:55 +08:00
use BookStack\Permissions\PermissionApplicator;
abstract class EntityQuery
{
protected function permissionService(): PermissionApplicator
{
return app()->make(PermissionApplicator::class);
}
protected function entityProvider(): EntityProvider
{
return app()->make(EntityProvider::class);
}
2021-06-26 23:23:15 +08:00
}