original_string: private function reloadActivatedPlugins()
      {
          $pluginsToPostPendingEventsTo = array();
          foreach ($this->pluginsToLoad as $pluginName) {
              $pluginsToPostPendingEventsTo = $this->reloadActivatedPlugin($pluginName, $pluginsToPostPendingEventsTo);
          }
  
          // post pending events after all plugins are successfully loaded
          foreach ($pluginsToPostPendingEventsTo as $plugin) {
              EventDispatcher::getInstance()->postPendingEventsTo($plugin);
          }
      }
code: private function reloadActivatedPlugins()
      {
          $pluginsToPostPendingEventsTo = array();
          foreach ($this->pluginsToLoad as $pluginName) {
              $pluginsToPostPendingEventsTo = $this->reloadActivatedPlugin($pluginName, $pluginsToPostPendingEventsTo);
          }
  
          // post pending events after all plugins are successfully loaded
          foreach ($pluginsToPostPendingEventsTo as $plugin) {
              EventDispatcher::getInstance()->postPendingEventsTo($plugin);
          }
      }
code_tokens: private function reloadActivatedPlugins ( ) { $ pluginsToPostPendingEventsTo = array ( ) ; foreach ( $ this -> pluginsToLoad as $ pluginName ) { $ pluginsToPostPendingEventsTo = $ this -> reloadActivatedPlugin ( $ pluginName , $ pluginsToPostPendingEventsTo ) ; } // post pending events after all plugins are successfully loaded foreach ( $ pluginsToPostPendingEventsTo as $ plugin ) { EventDispatcher :: getInstance ( ) -> postPendingEventsTo ( $ plugin ) ; } }
docstring: Load the plugins classes installed.
  Register the observers for every plugin.
docstring_tokens: Load the plugins classes installed . Register the observers for every plugin .