Skip to content

Commit 0b83118

Browse files
committed
refactor constructor
1 parent 16a45ce commit 0b83118

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Doctrine/DoctrineHelper.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@
3535
*/
3636
final class DoctrineHelper
3737
{
38-
private ?ManagerRegistry $registry;
39-
private ?array $mappingDriversByPrefix;
40-
41-
public function __construct(private string $entityNamespace, ManagerRegistry $registry = null, array $annotatedPrefixes = null)
42-
{
38+
public function __construct(
39+
private string $entityNamespace,
40+
private ?ManagerRegistry $registry = null,
41+
private ?array $mappingDriversByPrefix = null,
42+
) {
4343
$this->entityNamespace = trim($entityNamespace, '\\');
44-
$this->registry = $registry;
45-
$this->mappingDriversByPrefix = $annotatedPrefixes;
4644
}
4745

4846
public function getRegistry(): ManagerRegistry

0 commit comments

Comments
 (0)