@@ -14,8 +14,8 @@ |
||
14 | 14 | */ |
15 | 15 | class TaskRepository extends ServiceEntityRepository |
16 | 16 | { |
17 | - public function __construct(ManagerRegistry $registry) |
|
18 | - { |
|
17 | + public function __construct(ManagerRegistry $registry) |
|
18 | + { |
|
19 | 19 | parent::__construct($registry, Task::class); |
20 | - } |
|
20 | + } |
|
21 | 21 | } |
@@ -14,8 +14,8 @@ |
||
14 | 14 | */ |
15 | 15 | class TaskInterationRepository extends ServiceEntityRepository |
16 | 16 | { |
17 | - public function __construct(ManagerRegistry $registry) |
|
18 | - { |
|
17 | + public function __construct(ManagerRegistry $registry) |
|
18 | + { |
|
19 | 19 | parent::__construct($registry, TaskInteration::class); |
20 | - } |
|
20 | + } |
|
21 | 21 | } |
@@ -6,19 +6,19 @@ |
||
6 | 6 | use Doctrine\ORM\EntityManagerInterface; |
7 | 7 | |
8 | 8 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface |
9 | - AS Security; |
|
9 | + AS Security; |
|
10 | 10 | |
11 | 11 | class TaskInterationService |
12 | 12 | { |
13 | 13 | |
14 | - public function __construct( |
|
14 | + public function __construct( |
|
15 | 15 | private EntityManagerInterface $manager, |
16 | 16 | private Security $security |
17 | - ) {} |
|
17 | + ) {} |
|
18 | 18 | |
19 | - public function prePersist(TaskInteration $taskInteration) |
|
20 | - { |
|
19 | + public function prePersist(TaskInteration $taskInteration) |
|
20 | + { |
|
21 | 21 | $taskInteration->setRegisteredBy($this->security->getToken()->getUser()->getPeople()); |
22 | 22 | return $taskInteration; |
23 | - } |
|
23 | + } |
|
24 | 24 | } |