Skip to content

Commit

Permalink
prefix added as default file name prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
yahyaerturan committed Jun 4, 2020
1 parent 861b578 commit f39ada4
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Provider/YamlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,17 @@ private function getYamlFilesPathInfo($file): array
$yamlFiles[$iterator]['path'] = $_filePath;

if (false === file_exists($_filePath . $_fileName)) {
throw new FileNotFoundException(
null,
0,
null,
$_filePath.$_fileName
);

if (false === file_exists($_filePath . 'd.' . $_fileName)) {
throw new FileNotFoundException(
null,
0,
null,
$_filePath.$_fileName
);
} else {
$yamlFiles[$iterator]['name'] = 'd.' . $_fileName;
}
}

$iterator++;
Expand Down

0 comments on commit f39ada4

Please sign in to comment.