This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[!!!][TASK] Remove deprecated validation data
- Loading branch information
Showing
9 changed files
with
31 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...on/11-Changelog/Development/Changes/Breaking-RemoveDeprecatedValidationData.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.. include:: ../../../Includes.txt | ||
|
||
========================================== | ||
Breaking: Remove validation data component | ||
========================================== | ||
|
||
Description | ||
=========== | ||
|
||
Validation data is an old concept: managing form data from inside a validator is an anti-pattern. | ||
|
||
Upcoming middlewares feature (coming in a next patch) will allow better flexibility and replace this feature. | ||
|
||
Impact | ||
====== | ||
|
||
The functionality has been entirely removed and the following methods can't be used anymore: | ||
|
||
- :php:`Romm\Formz\Validation\Validator\AbstractValidator::getValidationData()` | ||
- :php:`Romm\Formz\Validation\Validator\AbstractValidator::setValidationData()` | ||
- :php:`Romm\Formz\Validation\Validator\AbstractValidator::setValidationDataValue()` | ||
- :php:`Romm\Formz\Form\FormInterface::getValidationData()` | ||
- :php:`Romm\Formz\Form\FormInterface::setValidationData()` | ||
|
||
Migration | ||
========= | ||
|
||
You might set up your own service class which can be used to manipulate data between two validators. | ||
|
||
An upcoming patch will introduce persistence for forms, and allow storing arbitrary data in database. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.