public function registerPlugin($plugin)
    {
        /** @var AnaloguePluginInterface $plugin */
        $plugin = new $plugin($this);

        $this->events = array_merge($this->events, $plugin->getCustomEvents());

        $plugin->register();
    }
public function registerPlugin($plugin)
    {
        /** @var AnaloguePluginInterface $plugin */
        $plugin = new $plugin($this);

        $this->events = array_merge($this->events, $plugin->getCustomEvents());

        $plugin->register();
    }
public function registerPlugin ( $ plugin ) { /** @var AnaloguePluginInterface $plugin */ $ plugin = new $ plugin ( $ this ) ; $ this -> events = array_merge ( $ this -> events , $ plugin -> getCustomEvents ( ) ) ; $ plugin -> register ( ) ; }
Register Analogue Plugin.

@param string $plugin class

@return void
Register Analogue Plugin .