Skip to content

added an interface for reader factories#63

Merged
ddeboer merged 1 commit intoportphp:masterfrom
lsmith77:add-reader-factory-interface
Nov 4, 2017
Merged

added an interface for reader factories#63
ddeboer merged 1 commit intoportphp:masterfrom
lsmith77:add-reader-factory-interface

Conversation

@lsmith77
Copy link
Copy Markdown
Contributor

@lsmith77 lsmith77 commented Nov 4, 2017

this would allow us to type hint this interface, rather than the CsvReaderFactory making the class useable for all other file types:
https://github.com/solutionDrive/SyliusImportExportPlugin/blob/master/src/Importer/AbstractImporter.php#L39

Obviously all the reader factories would then need to implement this interface.

@ddeboer ddeboer merged commit f430aae into portphp:master Nov 4, 2017
@ddeboer
Copy link
Copy Markdown
Member

ddeboer commented Nov 4, 2017

Thanks!

@@ -0,0 +1,20 @@
<?php

namespace Port\Csv;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Port\Reader.

ddeboer added a commit to portphp/excel that referenced this pull request Nov 4, 2017
ddeboer added a commit to portphp/dbal that referenced this pull request Nov 4, 2017
ddeboer added a commit to portphp/csv that referenced this pull request Nov 4, 2017
@lsmith77 lsmith77 deleted the add-reader-factory-interface branch November 5, 2017 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants