original_string: protected function publish($resource, $event, array $params=[])
      {
          $eventName = $this->eventName("$resource.$event");
  
          $this->callOnListeners($eventName, $params);
      }
code: protected function publish($resource, $event, array $params=[])
      {
          $eventName = $this->eventName("$resource.$event");
  
          $this->callOnListeners($eventName, $params);
      }
code_tokens: protected function publish ( $ resource , $ event , array $ params = [ ] ) { $ eventName = $ this -> eventName ( "$resource.$event" ) ; $ this -> callOnListeners ( $ eventName , $ params ) ; }
docstring: Publishes an event on the event bus
  
  @param string $resource
  @param string $event
  @param array $params
docstring_tokens: Publishes an event on the event bus