Skip to content

Commit 82ded9a

Browse files
committed
realpath app during string replacement
1 parent 505325b commit 82ded9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/Kernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ protected function load($paths)
224224
$command = $namespace.str_replace(
225225
['/', '.php'],
226226
['\\', ''],
227-
Str::after($command->getPathname(), app_path().DIRECTORY_SEPARATOR)
227+
Str::after($command->getPathname(), realpath(app_path()).DIRECTORY_SEPARATOR)
228228
);
229229

230230
if (is_subclass_of($command, Command::class) &&

0 commit comments

Comments
 (0)