8000 Pass the translator to the FileType when registering the extension · symfony/symfony@42111f0 · GitHub
[go: up one dir, main page]

Skip to content
Sign in

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 42111f0

Browse files
committed
Pass the translator to the FileType when registering the extension
1 parent f4fc2e3 commit 42111f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Core/CoreExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function loadTypes()
6969
new Type\TimeType(),
7070
new Type\TimezoneType(),
7171
new Type\UrlType(),
72-
new Type\FileType(),
72+
new Type\FileType($this->translator),
7373
new Type\ButtonType(),
7474
new Type\SubmitType(),
7575
new Type\ResetType(),

0 commit comments

Comments
 (0)
0