original_string: protected function loadComponents()
      {
          /*
           * Load module components
           */
          foreach ($this->callbacks as $callback) {
              $callback($this);
          }
  
          /*
           * Load plugin components
           */
          $pluginManager = PluginManager::instance();
          $plugins = $pluginManager->getPlugins();
  
          foreach ($plugins as $plugin) {
              $components = $plugin->registerComponents();
              if (!is_array($components)) {
                  continue;
              }
  
              foreach ($components as $className => $code) {
                  $this->registerComponent($className, $code, $plugin);
              }
          }
      }
code: protected function loadComponents()
      {
          /*
           * Load module components
           */
          foreach ($this->callbacks as $callback) {
              $callback($this);
          }
  
          /*
           * Load plugin components
           */
          $pluginManager = PluginManager::instance();
          $plugins = $pluginManager->getPlugins();
  
          foreach ($plugins as $plugin) {
              $components = $plugin->registerComponents();
              if (!is_array($components)) {
                  continue;
              }
  
              foreach ($components as $className => $code) {
                  $this->registerComponent($className, $code, $plugin);
              }
          }
      }
code_tokens: protected function loadComponents ( ) { /*
           * Load module components
           */ foreach ( $ this -> callbacks as $ callback ) { $ callback ( $ this ) ; } /*
           * Load plugin components
           */ $ pluginManager = PluginManager :: instance ( ) ; $ plugins = $ pluginManager -> getPlugins ( ) ; foreach ( $ plugins as $ plugin ) { $ components = $ plugin -> registerComponents ( ) ; if ( ! is_array ( $ components ) ) { continue ; } foreach ( $ components as $ className => $ code ) { $ this -> registerComponent ( $ className , $ code , $ plugin ) ; } } }
docstring: Scans each plugin an loads it's components.
  @return void
docstring_tokens: Scans each plugin an loads it s components .