public function load()
    {
        static::$loaded = true;
        
        $container = $this->getContainer();
        
        if($container){
            $config = $container->get('config');
            $events = $config['plugin-manager'];
            foreach($events as $event => $plugins){
                foreach($plugins as $type => $plugin){
                    $this->attach($event, $plugin, $plugin->Priority);
                }
            }
        }
        
        return true;
    }
public function load()
    {
        static::$loaded = true;
        
        $container = $this->getContainer();
        
        if($container){
            $config = $container->get('config');
            $events = $config['plugin-manager'];
            foreach($events as $event => $plugins){
                foreach($plugins as $type => $plugin){
                    $this->attach($event, $plugin, $plugin->Priority);
                }
            }
        }
        
        return true;
    }
public function load ( ) { static :: $ loaded = true ; $ container = $ this -> getContainer ( ) ; if ( $ container ) { $ config = $ container -> get ( 'config' ) ; $ events = $ config [ 'plugin-manager' ] ; foreach ( $ events as $ event => $ plugins ) { foreach ( $ plugins as $ type => $ plugin ) { $ this -> attach ( $ event , $ plugin , $ plugin -> Priority ) ; } } } return true ; }
load events with their plugins
load events with their plugins