Reads a file and return raw content as a string
- Service:
CleverAge\ProcessBundle\Task\File\InputFileReaderTask
string
: file path
string
: raw content of the file.
Underlying method is file_get_contents.
None
# 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'