public function getHandlerMethod($command) { if ($command instanceof SelfHandling) { return 'handle'; } return $this->inflectSegment($command, 1); }
/** * Get the handler method for the given command. * * @param mixed $command * @return string * @static */ public static function getHandlerMethod($command) { return \Illuminate\Bus\Dispatcher::getHandlerMethod($command); }