public function registerPlugin(array $plugin)
    {
        /* Dont't process nameless plugins */
        if(! isset($plugin['name'])) return;

        /* Create a container for the plugin */
        $this->getContainer()->addPlugin($plugin['name']);

        /* Commands are registered first so they can be found be porcedures */
        if(isset($plugin['commands'])) {
            $this->registerCommands($plugin['name'], $plugin['commands']);
        }

        if(isset($plugin['procedures'])) {
            /* The path info is appended by ComposerScripts */
            $this->registerProcedures($plugin['name'], $plugin['procedures'], $plugin['path']);
        }

        if(isset($plugin['settings'])) {
            $this->registerSettings($plugin['name'], $plugin[ 'settings' ]);
        }
    }
public function registerPlugin(array $plugin)
    {
        /* Dont't process nameless plugins */
        if(! isset($plugin['name'])) return;

        /* Create a container for the plugin */
        $this->getContainer()->addPlugin($plugin['name']);

        /* Commands are registered first so they can be found be porcedures */
        if(isset($plugin['commands'])) {
            $this->registerCommands($plugin['name'], $plugin['commands']);
        }

        if(isset($plugin['procedures'])) {
            /* The path info is appended by ComposerScripts */
            $this->registerProcedures($plugin['name'], $plugin['procedures'], $plugin['path']);
        }

        if(isset($plugin['settings'])) {
            $this->registerSettings($plugin['name'], $plugin[ 'settings' ]);
        }
    }
public function registerPlugin ( array $ plugin ) { /* Dont't process nameless plugins */ if ( ! isset ( $ plugin [ 'name' ] ) ) return ; /* Create a container for the plugin */ $ this -> getContainer ( ) -> addPlugin ( $ plugin [ 'name' ] ) ; /* Commands are registered first so they can be found be porcedures */ if ( isset ( $ plugin [ 'commands' ] ) ) { $ this -> registerCommands ( $ plugin [ 'name' ] , $ plugin [ 'commands' ] ) ; } if ( isset ( $ plugin [ 'procedures' ] ) ) { /* The path info is appended by ComposerScripts */ $ this -> registerProcedures ( $ plugin [ 'name' ] , $ plugin [ 'procedures' ] , $ plugin [ 'path' ] ) ; } if ( isset ( $ plugin [ 'settings' ] ) ) { $ this -> registerSettings ( $ plugin [ 'name' ] , $ plugin [ 'settings' ] ) ; } }
Register a plugin found in manifest file

@param array $plugin
@return null
Register a plugin found in manifest file