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

@ -44,7 +44,7 @@ namespace App\Validator\Constraints;
use App\Entity\UserSystem\Group;
use App\Entity\UserSystem\User;
use App\Services\PermissionResolver;
use App\Services\UserSystem\PermissionManager;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Security\Core\Security;
@ -53,12 +53,12 @@ use Symfony\Component\Validator\ConstraintValidator;
class NoLockoutValidator extends ConstraintValidator
{
protected PermissionResolver $resolver;
protected PermissionManager $resolver;
protected array $perm_structure;
protected Security $security;
protected EntityManagerInterface $entityManager;
public function __construct(PermissionResolver $resolver, Security $security, EntityManagerInterface $entityManager)
public function __construct(PermissionManager $resolver, Security $security, EntityManagerInterface $entityManager)
{
$this->resolver = $resolver;
$this->perm_structure = $resolver->getPermissionStructure();

View file

@ -43,17 +43,17 @@ declare(strict_types=1);
namespace App\Validator\Constraints;
use App\Security\Interfaces\HasPermissionsInterface;
use App\Services\PermissionResolver;
use App\Services\UserSystem\PermissionManager;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
class ValidPermissionValidator extends ConstraintValidator
{
protected PermissionResolver $resolver;
protected PermissionManager $resolver;
protected array $perm_structure;
public function __construct(PermissionResolver $resolver)
public function __construct(PermissionManager $resolver)
{
$this->resolver = $resolver;
}