How get file contents via Filesystem Component in Symfony 4?

  components, file-get-contents, filesystems, php, symfony

How can i get file contents via Symfony Filesystem component?

I was looked for copy and mirror methods – but they needs string as path as parameters…

In php is alternative, native function file_get_contents().

Is there some method to get content via component? Or i sohould use native php function?

Or something i can’t see?

Source: Symfony Questions