Skip to content

Commit

Permalink
Add method to configure definition conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
ksassnowski committed Jul 9, 2022
1 parent f98ca8c commit eb0e16e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/WorkflowDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use DateTimeInterface;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Str;
use Illuminate\Support\Traits\Conditionable;
use Laravel\SerializableClosure\SerializableClosure;
use Sassnowski\Venture\Exceptions\DuplicateJobException;
use Sassnowski\Venture\Exceptions\DuplicateWorkflowException;
Expand All @@ -27,6 +28,7 @@

class WorkflowDefinition
{
use Conditionable;
protected array $jobs = [];
protected DependencyGraph $graph;
protected ?string $thenCallback = null;
Expand Down

0 comments on commit eb0e16e

Please sign in to comment.