Skip to content

Commit

Permalink
Replace deprecated TranslatorInterface (depends on Symfony 4.2) #123
Browse files Browse the repository at this point in the history
As documented in UPGRADE-4.2.md. 
Minimum Symfony version raised from 3.4 to 4.2.
Explict dependency added for symfony/translation.
  • Loading branch information
Ian Thomas committed Mar 8, 2021
1 parent e7592f6 commit b335b01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Controller/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

use Symfony\Component\Finder\Finder;

Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
"require": {
"php": ">=7.1.3",
"ext-gd": "*",
"symfony/http-foundation": "~3.4 || ~4.2 || ~5.0",
"symfony/form": "~3.4 || ~4.2 || ~5.0",
"symfony/validator": "~3.4 || ~4.2 || ~5.0",
"symfony/routing": "~3.4 || ~4.2 || ~5.0",
"symfony/config": "~3.4 || ~4.2 || ~5.0",
"symfony/twig-bridge": "~3.4 || ~4.2 || ~5.0",
"symfony/http-foundation": "~4.2 || ~5.0",
"symfony/form": "~4.2 || ~5.0",
"symfony/validator": "~4.2 || ~5.0",
"symfony/routing": "~4.2 || ~5.0",
"symfony/config": "~4.2 || ~5.0",
"symfony/translation": "~4.2 || ~5.0",
"symfony/twig-bridge": "~4.2 || ~5.0",
"twig/twig": "^1.41 || ^2.10 || ~3.0",
"twig/extensions": "~1.0",
"friendsofsymfony/jsrouting-bundle": "@stable",
Expand Down

0 comments on commit b335b01

Please sign in to comment.