protected function readYaml($fileName)
{
try {
$fileContent = file_get_contents($fileName);
$parsedYaml = Yaml::parse($fileContent);
if (!is_array($parsedYaml)) {
$parsedYaml = [];
}
return $parsedYaml;
} catch (\Exception $e) {
throw new \RuntimeException('Could not open CRUD file ' . $fileName, $e->getCode(), $e);
}
}