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

Commit 2ec2ac2

Browse files
committed
Also added unDecorate to ValidateCommandBus
fixes laracasts#27
1 parent 2459ad3 commit 2ec2ac2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Laracasts/Commander/ValidationCommandBus.php

+10
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ public function decorate($className)
4545
$this->decorators[] = $className;
4646
}
4747

48+
/**
49+
* Clear decorations from the command bus
50+
*
51+
* @return null
52+
*/
53+
public function unDecorate()
54+
{
55+
$this->decorators = [];
56+
}
57+
4858
/**
4959
* Execute a command with validation.
5060
*

0 commit comments

Comments
 (0)