public function getData($file) { $document = $this->parser->parse($file->getContents()); return array_merge($document->getYAML(), ['content' => $document->getContent()]); }