original_string: protected function dispatchMessage($message): Envelope
      {
          if (!$this->container->has('messenger.default_bus')) {
              $message = class_exists(Envelope::class) ? 'You need to define the "messenger.default_bus" configuration option.' : 'Try running "composer require symfony/messenger".';
              throw new \LogicException('The message bus is not enabled in your application. '.$message);
          }
  
          return $this->container->get('messenger.default_bus')->dispatch($message);
      }
code: protected function dispatchMessage($message): Envelope
      {
          if (!$this->container->has('messenger.default_bus')) {
              $message = class_exists(Envelope::class) ? 'You need to define the "messenger.default_bus" configuration option.' : 'Try running "composer require symfony/messenger".';
              throw new \LogicException('The message bus is not enabled in your application. '.$message);
          }
  
          return $this->container->get('messenger.default_bus')->dispatch($message);
      }
code_tokens: protected function dispatchMessage ( $ message ) : Envelope { if ( ! $ this -> container -> has ( 'messenger.default_bus' ) ) { $ message = class_exists ( Envelope :: class ) ? 'You need to define the "messenger.default_bus" configuration option.' : 'Try running "composer require symfony/messenger".' ; throw new \ LogicException ( 'The message bus is not enabled in your application. ' . $ message ) ; } return $ this -> container -> get ( 'messenger.default_bus' ) -> dispatch ( $ message ) ; }
docstring: Dispatches a message to the bus.
  
  @param object|Envelope $message The message or the message pre-wrapped in an envelope
  
  @final
docstring_tokens: Dispatches a message to the bus .