mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 18:04:33 +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
|
@ -42,7 +42,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Services\TranslationExtractor;
|
||||
|
||||
use App\Services\PermissionResolver;
|
||||
use App\Services\UserSystem\PermissionManager;
|
||||
use Symfony\Component\Translation\Extractor\ExtractorInterface;
|
||||
use Symfony\Component\Translation\MessageCatalogue;
|
||||
|
||||
|
@ -55,7 +55,7 @@ final class PermissionExtractor implements ExtractorInterface
|
|||
private array $permission_structure;
|
||||
private bool $finished = false;
|
||||
|
||||
public function __construct(PermissionResolver $resolver)
|
||||
public function __construct(PermissionManager $resolver)
|
||||
{
|
||||
$this->permission_structure = $resolver->getPermissionStructure();
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ declare(strict_types=1);
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
namespace App\Services;
|
||||
namespace App\Services\UserSystem;
|
||||
|
||||
use App\Configuration\PermissionsConfiguration;
|
||||
use App\Entity\UserSystem\Group;
|
||||
|
@ -52,7 +52,12 @@ use Symfony\Component\Config\Definition\Processor;
|
|||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
|
||||
class PermissionResolver
|
||||
/**
|
||||
* This class manages the permissions of users and groups.
|
||||
* Permissions are defined in the config/permissions.yaml file, and are parsed and resolved by this class using the
|
||||
* user and hierachical group PermissionData information.
|
||||
*/
|
||||
class PermissionManager
|
||||
{
|
||||
protected $permission_structure;
|
||||
|
|
@ -3,15 +3,13 @@
|
|||
namespace App\Services\UserSystem;
|
||||
|
||||
use App\Entity\UserSystem\PermissionData;
|
||||
use App\Entity\UserSystem\User;
|
||||
use App\Security\Interfaces\HasPermissionsInterface;
|
||||
use App\Services\PermissionResolver;
|
||||
|
||||
class PermissionPresetsHelper
|
||||
{
|
||||
private PermissionResolver $permissionResolver;
|
||||
private PermissionManager $permissionResolver;
|
||||
|
||||
public function __construct(PermissionResolver $permissionResolver)
|
||||
public function __construct(PermissionManager $permissionResolver)
|
||||
{
|
||||
$this->permissionResolver = $permissionResolver;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue