Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Also added unDecorate to ValidateCommandBus
Browse files Browse the repository at this point in the history
  • Loading branch information
edderrd committed Nov 10, 2014
1 parent 2459ad3 commit 2ec2ac2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Laracasts/Commander/ValidationCommandBus.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ public function decorate($className)
$this->decorators[] = $className;
}

/**
* Clear decorations from the command bus
*
* @return null
*/
public function unDecorate()
{
$this->decorators = [];
}

/**
* Execute a command with validation.
*
Expand Down

0 comments on commit 2ec2ac2

Please sign in to comment.