Skip to content

Commit

Permalink
[8.x] Convert "/" in -e parameter to "\" (#40383)
Browse files Browse the repository at this point in the history
Convert "/" in `-e` parameter to "\" when using `php artisan make:listener` command.
  • Loading branch information
liamhao authored Jan 13, 2022
1 parent 31faa4d commit af6d431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/ListenerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function buildClass($name)
'Illuminate',
'\\',
])) {
$event = $this->laravel->getNamespace().'Events\\'.$event;
$event = $this->laravel->getNamespace().'Events\\'.str_replace('/', '\\', $event);
}

$stub = str_replace(
Expand Down

0 comments on commit af6d431

Please sign in to comment.