read() public method

Read from a file.
public read ( string $path, boolean $blocking = false ) : string
$path string Path to the file.
$blocking boolean Wait for other locks to expire rather than throwing an error when a lock cannot be aquired.
return string
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function load($path)
 {
     $yaml = $this->filesys->read($path);
     try {
         return $this->parser->parse($yaml);
     } catch (ParseException $e) {
         throw new LoadException($e->getMessage(), $e->getCode(), $e);
     }
 }