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

Commit bae1abc

Browse files
committed
update getting the relative path from real path
1 parent 4c09683 commit bae1abc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Finder.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,12 @@ public function listFeatures($serviceName = '')
661661
*
662662
* @return string
663663
*/
664-
protected function relativeFromReal($path, $needle = 'src/')
664+
protected function relativeFromReal($path, $needle = '')
665665
{
666+
if (!$needle) {
667+
$needle = $this->getSourceDirectoryName().'/';
668+
}
669+
666670
return strstr($path, $needle);
667671
}
668672
}

0 commit comments

Comments
 (0)