mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Renamed PermissionResolver service to PermissionService
This commit is contained in:
parent
131e9a2850
commit
b0c027f805
17 changed files with 50 additions and 53 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue