Skip to content

Commit 03daaeb

Browse files
committed
Tweak
1 parent 8e8d63c commit 03daaeb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Form/CommentType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
4343
$builder
4444
->add('content', TextareaType::class, [
4545
'help' => 'help.comment_content',
46+
'formaction' => 'foo',
4647
])
4748
;
4849
}

src/Twig/AppExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class AppExtension extends AbstractExtension
2727
private array $localeCodes;
2828
private ?array $locales = null;
2929

30+
// The $locales argument is injected thanks to the service container.
31+
// See https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type
3032
public function __construct(string $locales)
3133
{
32-
// The $locales argument is injected thanks to the service container.
33-
// See https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type
3434
$localeCodes = explode('|', $locales);
3535
sort($localeCodes);
3636
$this->localeCodes = $localeCodes;

0 commit comments

Comments
 (0)