Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7db5058

Browse filesBrowse files
committed
remove dead code
1 parent c3b9690 commit 7db5058
Copy full SHA for 7db5058

File tree

1 file changed

+1
-12
lines changed
Filter options

1 file changed

+1
-12
lines changed

‎src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php
+1-12Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ abstract class DoctrineType extends AbstractType
3636
*/
3737
protected $registry;
3838

39-
/**
40-
* @var ChoiceListFactoryInterface
41-
*/
42-
private $choiceListFactory;
43-
4439
/**
4540
* @var IdReader[]
4641
*/
@@ -108,15 +103,9 @@ public function getQueryBuilderPartsForCachingHash($queryBuilder)
108103
return false;
109104
}
110105

111-
public function __construct(ManagerRegistry $registry, PropertyAccessorInterface $propertyAccessor = null, ChoiceListFactoryInterface $choiceListFactory = null)
106+
public function __construct(ManagerRegistry $registry)
112107
{
113108
$this->registry = $registry;
114-
$this->choiceListFactory = $choiceListFactory ?: new CachingFactoryDecorator(
115-
new PropertyAccessDecorator(
116-
new DefaultChoiceListFactory(),
117-
$propertyAccessor
118-
)
119-
);
120109
}
121110

122111
public function buildForm(FormBuilderInterface $builder, array $options)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.