Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 720 Bytes

input_file_reader_task.md

File metadata and controls

41 lines (28 loc) · 720 Bytes

InputFileReaderTask

Reads a file and return raw content as a string

Task reference

  • Service: CleverAge\ProcessBundle\Task\File\InputFileReaderTask

Accepted inputs

string: file path

Possible outputs

string: raw content of the file. Underlying method is file_get_contents.

Options

None

Example

# Task configuration level
entry:
  service: '@CleverAge\ProcessBundle\Task\File\FolderBrowserTask'
  options:
    folder_path: '%kernel.project_dir%/var/data'
  outputs: read
read:
  service: '@CleverAge\ProcessBundle\Task\File\InputFileReaderTask'