public function loadPlugin(AbstractPlugin $plugin)
    {
        $name = $plugin->getName();
        $this->log->addDebug('--- Loading plugin ' . $name . PHP_EOL);

        $plugin->init();
        $this->plugins[$name] = $plugin;

        return $this;
    }
public function loadPlugin(AbstractPlugin $plugin)
    {
        $name = $plugin->getName();
        $this->log->addDebug('--- Loading plugin ' . $name . PHP_EOL);

        $plugin->init();
        $this->plugins[$name] = $plugin;

        return $this;
    }
public function loadPlugin ( AbstractPlugin $ plugin ) { $ name = $ plugin -> getName ( ) ; $ this -> log -> addDebug ( '--- Loading plugin ' . $ name . PHP_EOL ) ; $ plugin -> init ( ) ; $ this -> plugins [ $ name ] = $ plugin ; return $ this ; }
Loads a plugin. See the README for plugin documentation.

@param AbstractPlugin $plugin An instance of the plugin to load

@return \Philip\Philip
Loads a plugin . See the README for plugin documentation .