Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abec679

Browse files
Merge branch '3.1'
* 3.1: [SecurityBundle] Fix term width in UserPasswordEncoderCommandTest remove dead code
2 parents 46a8ede + 031f4c2 commit abec679

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

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

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@
2020
use Symfony\Bridge\Doctrine\Form\EventListener\MergeDoctrineCollectionListener;
2121
use Symfony\Component\Form\AbstractType;
2222
use Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator;
23-
use Symfony\Component\Form\ChoiceList\Factory\ChoiceListFactoryInterface;
24-
use Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory;
25-
use Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator;
2623
use Symfony\Component\Form\Exception\RuntimeException;
2724
use Symfony\Component\Form\FormBuilderInterface;
2825
use Symfony\Component\OptionsResolver\Options;
2926
use Symfony\Component\OptionsResolver\OptionsResolver;
30-
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
3127

3228
abstract class DoctrineType extends AbstractType
3329
{
@@ -36,11 +32,6 @@ abstract class DoctrineType extends AbstractType
3632
*/
3733
protected $registry;
3834

39-
/**
40-
* @var ChoiceListFactoryInterface
41-
*/
42-
private $choiceListFactory;
43-
4435
/**
4536
* @var IdReader[]
4637
*/
@@ -108,15 +99,9 @@ public function getQueryBuilderPartsForCachingHash($queryBuilder)
10899
return false;
109100
}
110101

111-
public function __construct(ManagerRegistry $registry, PropertyAccessorInterface $propertyAccessor = null, ChoiceListFactoryInterface $choiceListFactory = null)
102+
public function __construct(ManagerRegistry $registry)
112103
{
113104
$this->registry = $registry;
114-
$this->choiceListFactory = $choiceListFactory ?: new CachingFactoryDecorator(
115-
new PropertyAccessDecorator(
116-
new DefaultChoiceListFactory(),
117-
$propertyAccessor
118-
)
119-
);
120105
}
121106

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

src/Symfony/Bundle/SecurityBundle/Tests/Functional/UserPasswordEncoderCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function testEncodePasswordNoConfigForGivenUserClass()
140140

141141
protected function setUp()
142142
{
143-
putenv('COLUMNS=120');
143+
putenv('COLUMNS='.(119 + strlen(PHP_EOL)));
144144
$kernel = $this->createKernel(array('test_case' => 'PasswordEncode'));
145145
$kernel->boot();
146146

0 commit comments

Comments
 (0)