Reads a file and iterate on each line, returning content as string. Skips empty lines.
- Service:
CleverAge\ProcessBundle\Task\File\InputLineReaderTask
- Iterable task
string
: file path
string
: foreach line, it will return content as string.
Underlying method is SplFileObject.
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\InputLineReaderTask'