Skip to content

Commit

Permalink
[5.5] Fix problems with commands load in Windows (#20595)
Browse files Browse the repository at this point in the history
  • Loading branch information
avengerweb authored and taylorotwell committed Aug 16, 2017
1 parent 5a366e9 commit cec46b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ protected function load($paths)
$command = $namespace.str_replace(
['/', '.php'],
['\\', ''],
Str::after($command->getPathname(), app_path().'/')
Str::after($command->getPathname(), app_path().DIRECTORY_SEPARATOR)
);

if (is_subclass_of($command, Command::class)) {
Expand Down

0 comments on commit cec46b0

Please sign in to comment.