Skip to content

Commit a0cf15d

Browse files
authored
Update Symfony dependencies to allow 5.0 packages (#379)
1 parent da8e151 commit a0cf15d

7 files changed

Lines changed: 18 additions & 14 deletions

File tree

‎src/Domain/composer.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"require-dev": {
3232
"doctrine/orm": "^2.6",
3333
"ramsey/uuid": "^3.7",
34-
"symfony/messenger": "^4.3",
35-
"symfony/var-exporter": "^4.2"
34+
"symfony/messenger": "^4.3 || ^5.0",
35+
"symfony/var-exporter": "^4.2 || ^5.0"
3636
},
3737
"config": {
3838
"preferred-install": {

‎src/Eav/composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"require-dev": {
2323
"doctrine/orm": "^2.6",
24-
"symfony/messenger": "^4.3"
24+
"symfony/messenger": "^4.3 || ^5.0"
2525
},
2626
"config": {
2727
"preferred-install": {

‎src/EavBundle/composer.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
],
1616
"require": {
1717
"msgphp/eav": "^0.14",
18-
"symfony/config": "^3.4 || ^4.2",
19-
"symfony/dependency-injection": "^3.4 || ^4.2",
20-
"symfony/http-kernel": "^3.4 || ^4.2"
18+
"symfony/config": "^3.4 || ^4.2 || ^5.0",
19+
"symfony/dependency-injection": "^3.4 || ^4.2 || ^5.0",
20+
"symfony/http-kernel": "^3.4 || ^4.2 || ^5.0"
2121
},
2222
"config": {
2323
"preferred-install": {

‎src/User/Infrastructure/Form/Type/HashedPasswordType.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
9696
$context->buildViolation($passwordConfirmOptions['invalid_message'], $passwordConfirmOptions['invalid_message_parameters'])
9797
->setCause($this)
9898
->setInvalidValue($value)
99-
->setTranslationDomain($passwordConfirmOptions['translation_domain'])
10099
->addViolation()
101100
;
102101
}

‎src/User/Tests/Infrastructure/Form/Type/HashedPasswordTypeTest.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ public function isPasswordValid($encoded, $raw, $salt)
174174
{
175175
return $encoded === $this->encodePassword($raw, $salt);
176176
}
177+
178+
public function needsRehash(string $encoded): bool
179+
{
180+
return false;
181+
}
177182
};
178183

179184
return [

‎src/User/composer.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
},
2222
"require-dev": {
2323
"doctrine/orm": "^2.6",
24-
"symfony/form": "^3.4.24 || ^4.2.5",
25-
"symfony/messenger": "^4.3",
26-
"symfony/security-core": "^3.4 || ^4.2",
27-
"symfony/validator": "^3.4 || ^4.2"
24+
"symfony/form": "^3.4.24 || ^4.2.5 || ^5.0",
25+
"symfony/messenger": "^4.3 || ^5.0",
26+
"symfony/security-core": "^3.4 || ^4.2 || ^5.0",
27+
"symfony/validator": "^3.4 || ^4.2 || ^5.0"
2828
},
2929
"config": {
3030
"preferred-install": {

‎src/UserBundle/composer.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
],
1616
"require": {
1717
"msgphp/user": "^0.14",
18-
"symfony/config": "^3.4 || ^4.2",
19-
"symfony/dependency-injection": "^3.4 || ^4.2",
20-
"symfony/http-kernel": "^3.4 || ^4.2"
18+
"symfony/config": "^3.4 || ^4.2 || ^5.0",
19+
"symfony/dependency-injection": "^3.4 || ^4.2 || ^5.0",
20+
"symfony/http-kernel": "^3.4 || ^4.2 || ^5.0"
2121
},
2222
"config": {
2323
"preferred-install": {

0 commit comments

Comments
 (0)