Skip to content

Commit

Permalink
SUPESC-158 Adjusted CSV dataimport validation, twig path reader. (#10…
Browse files Browse the repository at this point in the history
…906)

SUPESC-158 Adjusted CSV dataimport validation, twig path reader.
  • Loading branch information
vol4onok authored Apr 17, 2024
1 parent aed418c commit bd5a3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spryker/Shared/Twig/BaseTwigFilesystemLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ protected function getNamespacedPath(string $path, ?string $organization): strin
}

$pathFragments = explode(DIRECTORY_SEPARATOR, $path);
$positionOfSourceDirectory = array_search('src', $pathFragments);
$positionOfSourceDirectory = array_search('src', array_reverse($pathFragments, true), true);
$pathFragments[$positionOfSourceDirectory + 1] = $organization;

return implode(DIRECTORY_SEPARATOR, $pathFragments);
Expand Down

0 comments on commit bd5a3dc

Please sign in to comment.