Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 1fa5d91

Browse files
authored
Merge pull request #6 from glorand/master
Use DIRECTORY_SEPARATOR
2 parents 49a0671 + 1c72411 commit 1fa5d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Finder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ public function findFeature($name)
457457
$files = $finder->name($fileName)->in($this->findServicesRootPath())->files();
458458
foreach ($files as $file) {
459459
$path = $file->getRealPath();
460-
$serviceName = strstr($file->getRelativePath(), '/', true);
460+
$serviceName = strstr($file->getRelativePath(), DIRECTORY_SEPARATOR, true);
461461
$service = $this->findService($serviceName);
462462
$content = file_get_contents($path);
463463

0 commit comments

Comments
 (0)