-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSV files: added possibility to select PHP input file mode #14610
CSV files: added possibility to select PHP input file mode #14610
Conversation
*/ | ||
public function saveData($file, $data) | ||
public function saveData($file, $data, $mode = 'w') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add new method parameters according to our Backward Compatible Development Guide
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. But in my very humble opinion, it makes the code bloated. My first proposal was not breaking backward compatibility and kept the original code.
Hi @sidolov, thank you for the review. |
Hi @enrico69. Thank you for your contribution. |
Description
A small modification to the CSV processor of the framework. This processeur is juste a layer
over native PHP functions. However it forces the input mode when writing into a file which is very unpleasant and lacks of flexibility.
For instance, if you want to progressively save the data in to the file, you can't: you have to save it at once. It could lead to have big amount of data stored in memory while it could be saved progressively in the file.
This small modification allows to developer to choose the input mode while not breaking the backward compatibility.
Manual testing scenarios
Contribution checklist