Skip to content

Commit

Permalink
Update for Symfony4 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
edhgoose committed Mar 5, 2022
1 parent ef03456 commit 7a00f06
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
}
},
"require": {
"symfony/form": "~2.8|~3.0|^4.0",
"symfony/translation": "~2.3|~3.0|^4.0",
"symfony/serializer": "~2.8|~3.0|^4.0"
"symfony/form": "^4.0",
"symfony/translation": "^4.0",
"symfony/serializer": "^4.0"
},
"require-dev": {
"escapestudios/symfony2-coding-standard": "^2.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* Normalizes invalid Form instances.
Expand Down
2 changes: 1 addition & 1 deletion src/Limenius/Liform/Transformer/AbstractTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormTypeGuesserInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @author Nacho Martín <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Limenius/Liform/Transformer/ArrayTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Limenius\Liform\ResolverInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormTypeGuesserInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @author Nacho Martín <[email protected]>
Expand Down
3 changes: 1 addition & 2 deletions src/Limenius/Liform/Transformer/CompoundTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@

namespace Limenius\Liform\Transformer;

use Limenius\Liform\FormUtil;
use Limenius\Liform\ResolverInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormTypeGuesserInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

/**
* @author Nacho Martín <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion tests/Limenius/Liform/Tests/LiformTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Limenius\Liform\Form\Extension\AddLiformExtension;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Form\Forms;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

/**
*
Expand Down

0 comments on commit 7a00f06

Please sign in to comment.