How get file contents via Filesystem Component in Symfony 4?

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

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *