Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1107d80

Browse files
committed
[Validator] removed deprecated methods
1 parent 34a258e commit 1107d80

28 files changed

+70
-1838
lines changed

src/Symfony/Component/Validator/ConstraintViolation.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,6 @@ public function getMessageTemplate()
141141

142142
/**
143143
* {@inheritdoc}
144-
*
145-
* @deprecated since version 2.7, to be removed in 3.0.
146-
* Use getParameters() instead
147-
*/
148-
public function getMessageParameters()
149-
{
150-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7, to be removed in 3.0. Use the ConstraintViolation::getParameters() method instead.', E_USER_DEPRECATED);
151-
152-
return $this->parameters;
153-
}
154-
155-
/**
156-
* Alias of {@link getMessageParameters()}.
157144
*/
158145
public function getParameters()
159146
{
@@ -162,19 +149,6 @@ public function getParameters()
162149

163150
/**
164151
* {@inheritdoc}
165-
*
166-
* @deprecated since version 2.7, to be removed in 3.0.
167-
* Use getPlural() instead
168-
*/
169-
public function getMessagePluralization()
170-
{
171-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7, to be removed in 3.0. Use the ConstraintViolation::getPlural() method instead.', E_USER_DEPRECATED);
172-
173-
return $this->plural;
174-
}
175-
176-
/**
177-
* Alias of {@link getMessagePluralization()}.
178152
*/
179153
public function getPlural()
180154
{

src/Symfony/Component/Validator/ConstraintViolationInterface.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getMessage();
4646
* Returns the raw violation message.
4747
*
4848
* The raw violation message contains placeholders for the parameters
49-
* returned by {@link getMessageParameters}. Typically you'll pass the
49+
* returned by {@link getParameters}. Typically you'll pass the
5050
* message template and parameters to a translation engine.
5151
*
5252
* @return string The raw violation message.
@@ -60,10 +60,8 @@ public function getMessageTemplate();
6060
* that appear in the message template.
6161
*
6262
* @see getMessageTemplate()
63-
*
64-
* @deprecated since version 2.7, to be replaced by getParameters() in 3.0.
6563
*/
66-
public function getMessageParameters();
64+
public function getParameters();
6765

6866
/**
6967
* Returns a number for pluralizing the violation message.
@@ -80,10 +78,8 @@ public function getMessageParameters();
8078
* pluralization form (in this case "choices").
8179
*
8280
* @return int|null The number to use to pluralize of the message.
83-
*
84-
* @deprecated since version 2.7, to be replaced by getPlural() in 3.0.
8581
*/
86-
public function getMessagePluralization();
82+
public function getPlural();
8783

8884
/**
8985
* Returns the root element of the validation.

src/Symfony/Component/Validator/Constraints/GroupSequence.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Validator\Constraints;
1313

14-
use Symfony\Component\Validator\Exception\OutOfBoundsException;
15-
1614
/**
1715
* A sequence of validation groups.
1816
*

src/Symfony/Component/Validator/Context/LegacyExecutionContext.php

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/Symfony/Component/Validator/Context/LegacyExecutionContextFactory.php

Lines changed: 0 additions & 77 deletions
This file was deleted.

src/Symfony/Component/Validator/DefaultTranslator.php

Lines changed: 0 additions & 171 deletions
This file was deleted.

0 commit comments

Comments
 (0)