Skip to content

Refactor the FileReaderTasks to abstract the input file type #78

Description

@shavounet

Feature description

  • ease the definition of new file type that can be read/written
    • old interface are not flexible enough for all use cases
  • add a new XMLReaderTask

Implementation proposal

  • new namespace File (maybe one day, a separate bundle & ditch the old interfaces ?)
  • based on SplFileObject ?
  • separate File manipulation and Resource manipulation using composition instead of inheritance
  • interfaces : readable / writable / readableStream / writableStream / seekable ?
  • file types : csv / json / json_stream / xml
  • test compaibility with flysystem ?

PR requirements

  • Documentation
  • Unit tests
  • Breaking changes : yes (minor, on FileInterface ? add a new interface & depreciate the old one ?)

Activity

  1. self-assigned this
    on Nov 14, 2019
  2. added this to the v3.1 milestone on Nov 14, 2019
  3. modified the milestones: v3.1.0, v3.1.1 on Feb 12, 2020
  4. modified the milestones: v3.1.1, on Sep 17, 2021
  5. removed this from the milestone on Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions