Skip to content

Commit

Permalink
Merge pull request #15 from vanyamil/main
Browse files Browse the repository at this point in the history
Change to allow forward-slashes in Windows
  • Loading branch information
freekmurze authored Mar 8, 2022
2 parents abeaf0b + f4417a0 commit 5f1938f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PendingRoutes/PendingRouteFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function make(SplFileInfo $fileInfo): ?PendingRoute
protected function discoverUri(ReflectionClass $class): string
{
$parts = Str::of((string) $class->getFileName())
->after($this->registeringDirectory)
->after(str_replace('/', DIRECTORY_SEPARATOR, $this->registeringDirectory))
->beforeLast('Controller')
->explode(DIRECTORY_SEPARATOR);

Expand Down

0 comments on commit 5f1938f

Please sign in to comment.