mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix namespaces and move voters to corresponding bundles
This commit is contained in:
parent
742f2540f6
commit
efaad1981d
@ -106,7 +106,7 @@ class ActivityRepository extends ServiceEntityRepository implements AssociatedEn
|
||||
* @throws NonUniqueResultException
|
||||
* @throws NoResultException
|
||||
*/
|
||||
public function findAssociatedEntityToStoredObject(StoredObject $storedObject): ?object
|
||||
public function findAssociatedEntityToStoredObject(StoredObject $storedObject): ?Activity
|
||||
{
|
||||
$qb = $this->createQueryBuilder('a');
|
||||
$query = $qb
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace src\Bundle\ChillDocStoreBundle\Security\Authorization\StoredObjectVoters;
|
||||
namespace Chill\ActivityBundle\Security\Authorization;
|
||||
|
||||
use Chill\ActivityBundle\Entity\Activity;
|
||||
use Chill\ActivityBundle\Repository\ActivityDocumentACLAwareRepository;
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace ChillDocStoreBundle\Security\Authorization\StoredObjectVoters;
|
||||
namespace Chill\DocStoreBundle\Security\Authorization\StoredObjectVoters;
|
||||
|
||||
use Chill\DocStoreBundle\Entity\AccompanyingCourseDocument;
|
||||
use Chill\DocStoreBundle\Repository\AccompanyingCourseDocumentRepository;
|
||||
@ -11,7 +11,7 @@ use Chill\DocStoreBundle\Security\Authorization\StoredObjectVoters\AbstractStore
|
||||
use Chill\DocStoreBundle\Service\WorkflowDocumentService;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
|
||||
final class AccompanyingCourseStoredObjectVoter extends AbstractStoredObjectVoter
|
||||
final class AccompanyingCourseDocumentStoredObjectVoter extends AbstractStoredObjectVoter
|
||||
{
|
||||
public function __construct(
|
||||
private readonly AccompanyingCourseDocumentRepository $repository,
|
@ -1,10 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace src\Bundle\ChillDocStoreBundle\Security\Authorization\StoredObjectVoters;
|
||||
namespace Chill\DocStoreBundle\Security\Authorization\StoredObjectVoters;
|
||||
|
||||
use Chill\DocStoreBundle\Repository\AssociatedEntityToStoredObjectInterface;
|
||||
use Chill\DocStoreBundle\Security\Authorization\StoredObjectRoleEnum;
|
||||
use Chill\DocStoreBundle\Security\Authorization\StoredObjectVoters\AbstractStoredObjectVoter;
|
||||
use Chill\DocStoreBundle\Service\WorkflowDocumentService;
|
||||
use Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork;
|
||||
use Chill\PersonBundle\Repository\AccompanyingPeriod\AccompanyingPeriodWorkRepository;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace src\Bundle\ChillDocStoreBundle\Security\Authorization\StoredObjectVoters;
|
||||
namespace Chill\DocStoreBundle\Security\Authorization\StoredObjectVoters;
|
||||
|
||||
use Chill\DocStoreBundle\Entity\PersonDocument;
|
||||
use Chill\DocStoreBundle\Repository\AssociatedEntityToStoredObjectInterface;
|
||||
@ -11,7 +11,7 @@ use Chill\DocStoreBundle\Security\Authorization\StoredObjectVoters\AbstractStore
|
||||
use Chill\DocStoreBundle\Service\WorkflowDocumentService;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
|
||||
class PersonStoredObjectVoter extends AbstractStoredObjectVoter
|
||||
class PersonDocumentStoredObjectVoter extends AbstractStoredObjectVoter
|
||||
{
|
||||
public function __construct(
|
||||
private readonly PersonDocumentRepository $repository,
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace src\Bundle\ChillDocStoreBundle\Security\Authorization\StoredObjectVoters;
|
||||
namespace Chill\EventBundle\Security\Authorization;
|
||||
|
||||
use Chill\DocStoreBundle\Repository\AssociatedEntityToStoredObjectInterface;
|
||||
use Chill\DocStoreBundle\Security\Authorization\StoredObjectRoleEnum;
|
Loading…
x
Reference in New Issue
Block a user