From 2ec2ac239691d5fa12f543c3a2209e0f452f7121 Mon Sep 17 00:00:00 2001 From: Edder Rojas Date: Mon, 10 Nov 2014 00:46:36 -0600 Subject: [PATCH] Also added unDecorate to ValidateCommandBus fixes #27 --- src/Laracasts/Commander/ValidationCommandBus.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Laracasts/Commander/ValidationCommandBus.php b/src/Laracasts/Commander/ValidationCommandBus.php index d33ddd9..ec5c776 100644 --- a/src/Laracasts/Commander/ValidationCommandBus.php +++ b/src/Laracasts/Commander/ValidationCommandBus.php @@ -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. *