Sometimes you may need to execute multiple commands at the same time, it will accidentally share same decorators which is not intended that they should be, because the decorators array is store in the shared command bus.
e.g.
$this->execute(PostJobListingCommand::class, $data, JobSanitizer);
$this->execute(ClearCacheCommand::class);
The second execute will take the JobSanitizer docorator which is not intended.
Sometimes you may need to execute multiple commands at the same time, it will accidentally share same decorators which is not intended that they should be, because the decorators array is store in the shared command bus.
e.g. $this->execute(PostJobListingCommand::class, $data, JobSanitizer); $this->execute(ClearCacheCommand::class);
The second execute will take the JobSanitizer docorator which is not intended.