|
11 | 11 |
|
12 | 12 | namespace Symfony\UX\Autocomplete\Tests\Fixtures;
|
13 | 13 |
|
14 |
| -use Composer\InstalledVersions; |
15 | 14 | use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
|
16 | 15 | use Psr\Log\NullLogger;
|
17 | 16 | use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
|
@@ -55,7 +54,7 @@ public function testForm(FormFactoryInterface $formFactory, Environment $twig, R
|
55 | 54 | $form->handleRequest($request);
|
56 | 55 |
|
57 | 56 | return new Response($twig->render('form.html.twig', [
|
58 |
| - 'form' => $form->createView() |
| 57 | + 'form' => $form->createView(), |
59 | 58 | ]));
|
60 | 59 | }
|
61 | 60 |
|
@@ -118,25 +117,18 @@ protected function configureContainer(ContainerConfigurator $c): void
|
118 | 117 | ],
|
119 | 118 | ]);
|
120 | 119 |
|
121 |
| - $symfonySecurityBundleVersion = InstalledVersions::getVersion('symfony/security-bundle'); |
122 |
| - if (null !== $symfonySecurityBundleVersion && version_compare($symfonySecurityBundleVersion, '5.4', '<=')) { |
123 |
| - $c->extension('security', [ |
124 |
| - 'enable_authenticator_manager' => true, |
125 |
| - ]); |
126 |
| - } |
127 |
| - |
128 | 120 | $c->extension('security', [
|
129 | 121 | 'password_hashers' => [
|
130 |
| - PasswordAuthenticatedUserInterface::class => 'plaintext' |
| 122 | + PasswordAuthenticatedUserInterface::class => 'plaintext', |
131 | 123 | ],
|
132 | 124 | 'providers' => [
|
133 | 125 | 'users_in_memory' => [
|
134 | 126 | 'memory' => [
|
135 | 127 | 'users' => [
|
136 |
| - 'mr_autocompleter' => ['password' => 'symfonypass', 'roles' => ['ROLE_USER']] |
| 128 | + 'mr_autocompleter' => ['password' => 'symfonypass', 'roles' => ['ROLE_USER']], |
137 | 129 | ],
|
138 | 130 | ],
|
139 |
| - ] |
| 131 | + ], |
140 | 132 | ],
|
141 | 133 | 'firewalls' => [
|
142 | 134 | 'main' => [
|
@@ -164,14 +156,14 @@ protected function configureContainer(ContainerConfigurator $c): void
|
164 | 156 | ->public()
|
165 | 157 | ->arg(1, new Reference('ux.autocomplete.entity_search_util'))
|
166 | 158 | ->tag(AutocompleteFormTypePass::ENTITY_AUTOCOMPLETER_TAG, [
|
167 |
| - 'alias' => 'custom_product' |
| 159 | + 'alias' => 'custom_product', |
168 | 160 | ]);
|
169 | 161 |
|
170 | 162 | $services->set(CustomGroupByProductAutocompleter::class)
|
171 | 163 | ->public()
|
172 | 164 | ->arg(1, new Reference('ux.autocomplete.entity_search_util'))
|
173 | 165 | ->tag(AutocompleteFormTypePass::ENTITY_AUTOCOMPLETER_TAG, [
|
174 |
| - 'alias' => 'custom_group_by_product' |
| 166 | + 'alias' => 'custom_group_by_product', |
175 | 167 | ]);
|
176 | 168 |
|
177 | 169 | $services->alias('public.results_executor', 'ux.autocomplete.results_executor')
|
|
0 commit comments