Skip to content

Commit 57bad14

Browse files
committed
Replace trait
1 parent 02f528e commit 57bad14

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Console/InstallCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
namespace Laravel\Horizon\Console;
44

55
use Illuminate\Console\Command;
6-
use Illuminate\Console\DetectsApplicationNamespace;
76
use Illuminate\Support\Str;
87

98
class InstallCommand extends Command
109
{
11-
use DetectsApplicationNamespace;
12-
1310
/**
1411
* The name and signature of the console command.
1512
*
@@ -52,7 +49,7 @@ public function handle()
5249
*/
5350
protected function registerHorizonServiceProvider()
5451
{
55-
$namespace = Str::replaceLast('\\', '', $this->getAppNamespace());
52+
$namespace = Str::replaceLast('\\', '', $this->laravel->getNamespace());
5653

5754
$appConfig = file_get_contents(config_path('app.php'));
5855

0 commit comments

Comments
 (0)