Skip to content

Commit

Permalink
Remove unused traits 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
hsemix committed Oct 29, 2022
1 parent 64e443c commit 9eb509c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Yuga/Queue/Console/MakeQueueJobCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ protected function generateJob($name)

$namespace = $file->addNamespace(env('APP_NAMESPACE', 'App'). '\\Jobs');

$namespace->addUse('Yuga\Queue\QueueableTrait');
// $namespace->addUse('Yuga\Queue\QueueableTrait');
$namespace->addUse('Yuga\Queue\DispatchableTrait');
$namespace->addUse('Yuga\Interfaces\Queue\JobInterface');

$class = $namespace->addClass(trim($name));

$class->addImplement('Yuga\Interfaces\Queue\JobInterface');
$class->addTrait('Yuga\Queue\QueueableTrait');
// $class->addTrait('Yuga\Queue\QueueableTrait');
$class->addTrait('Yuga\Queue\DispatchableTrait');

$classConstructor = $class->addMethod('__construct')->setBody('//');
Expand Down

0 comments on commit 9eb509c

Please sign in to comment.