protected function loadMappingFile($file) { if (!is_file($file)) { throw new InvalidArgumentException(sprintf('File "%s" not found', $file)); } return Yaml::parse(file_get_contents($file)); }