Skip to content

Commit

Permalink
Replace trait
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Nov 26, 2019
1 parent ff423f3 commit d73e7fa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
namespace Laravel\Horizon\Console;

use Illuminate\Console\Command;
use Illuminate\Console\DetectsApplicationNamespace;
use Illuminate\Support\Str;

class InstallCommand extends Command
{
use DetectsApplicationNamespace;

/**
* The name and signature of the console command.
*
Expand Down Expand Up @@ -52,7 +49,7 @@ public function handle()
*/
protected function registerHorizonServiceProvider()
{
$namespace = Str::replaceLast('\\', '', $this->getAppNamespace());
$namespace = Str::replaceLast('\\', '', $this->laravel->getNamespace());

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

Expand Down

0 comments on commit d73e7fa

Please sign in to comment.