Skip to content

Commit 4009104

Browse files
committed
Allow doctrine/persistance v2+ and drop v1
1 parent e3f490f commit 4009104

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Form/EnumTypeGuesser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Fervo\EnumBundle\Form;
44

5-
use Doctrine\Common\Persistence\ManagerRegistry;
6-
use Doctrine\Common\Persistence\Mapping\MappingException;
5+
use Doctrine\Common\Util\ClassUtils;
76
use Doctrine\ORM\Mapping\MappingException as LegacyMappingException;
7+
use Doctrine\Persistence\ManagerRegistry;
8+
use Doctrine\Persistence\Mapping\MappingException;
89
use Symfony\Component\Form\FormTypeGuesserInterface;
910
use Symfony\Component\Form\Guess\Guess;
1011
use Symfony\Component\Form\Guess\TypeGuess;
11-
use Doctrine\Common\Util\ClassUtils;
1212

1313
class EnumTypeGuesser implements FormTypeGuesserInterface
1414
{

composer.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
"psr-4": { "Fervo\\EnumBundle\\": ""}
88
},
99
"require": {
10-
"php": "~7.0|~8.0",
11-
"symfony/form": "~3.0|~4.0|~5.0",
12-
"symfony/framework-bundle": "~3.0|~4.0|~5.0",
13-
"symfony/translation": "~3.0|~4.0|~5.0",
14-
"doctrine/doctrine-bundle": "~1.2|~2.0",
15-
"myclabs/php-enum": "~1.3",
16-
"doctrine/common": "~2.4|~3.0"
10+
"php": "^7.0|^8.0",
11+
"doctrine/common": "^3.0",
12+
"doctrine/doctrine-bundle": "^2.0",
13+
"doctrine/persistence": "^2.0|^3.0",
14+
"myclabs/php-enum": "^1.3",
15+
"symfony/form": "^3.0|^4.0|^5.0",
16+
"symfony/framework-bundle": "^3.0|^4.0|^5.0",
17+
"symfony/translation": "^3.0|^4.0|^5.0"
1718
},
1819
"suggest": {
1920
"jms/serializer-bundle": "If you want to serialize data using JMS Serializer",

0 commit comments

Comments
 (0)