/** * Handle the command. * * @param $command * * @return mixed */ public function handle($command) { $product = $this->product->create($command->input); $this->dispatcher->dispatch($product->releaseEvents()); }
/** * Handle the command. * * @param $command * * @return mixed */ public function handle($command) { $product = $this->product->post($command->title, $command->description); $this->dispatcher->dispatch($product->releaseEvents()); }