WeareJH / m2-module-import

Import module for Magento 2 - provides commands, utilities and abstractions for building imports for Magento 2 projects
MIT License
19 stars 8 forks source link

Give writers more context of the import being ran #37

Closed mikeymike closed 3 years ago

mikeymike commented 3 years ago

Currently Writers are "dumb" which isn't a bad thing but in a recent scenario I needed the writer to have some data of the import it was writing for.

The specific scenario was writing the data to a db table to be collated later but the row being written had to include the import name to prevent duping.

It also turned out that a few tests were failing on my local due to how PHP error handling was configured. All going well the changes should allow tests to run in both a dev / prod error reporting configuration.