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);
        }
    }
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);
        }
    }
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 ) ; } }
Load the plugins classes installed.
Register the observers for every plugin.
Load the plugins classes installed . Register the observers for every plugin .