Renamed PermissionResolver service to PermissionService

This commit is contained in:
Jan Böhmer 2022-11-14 20:15:06 +01:00
parent 131e9a2850
commit b0c027f805
17 changed files with 50 additions and 53 deletions

View file

@ -42,7 +42,7 @@ declare(strict_types=1);
namespace App\Form\Permissions;
use App\Services\PermissionResolver;
use App\Services\UserSystem\PermissionManager;
use RuntimeException;
use Symfony\Component\Form\DataMapperInterface;
use Symfony\Component\Form\FormInterface;
@ -54,10 +54,10 @@ use Traversable;
*/
final class PermissionsMapper implements DataMapperInterface
{
private PermissionResolver $resolver;
private PermissionManager $resolver;
private bool $inherit;
public function __construct(PermissionResolver $resolver, bool $inherit = false)
public function __construct(PermissionManager $resolver, bool $inherit = false)
{
$this->inherit = $inherit;
$this->resolver = $resolver;