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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
Scans each plugin an loads it's components.
@return void
Scans each plugin an loads it s components .