ApplicationFactory.php
private function registerPlugin(Plugin $plugin): void
    {
        if ($this->hasPlugin($plugin->getName())) {
            return;
        }

        $this->plugins[$plugin->getName()] = $plugin;
    }
private function registerPlugin(Plugin $plugin): void
    {
        if ($this->hasPlugin($plugin->getName())) {
            return;
        }

        $this->plugins[$plugin->getName()] = $plugin;
    }
private function registerPlugin ( Plugin $ plugin ) : void { if ( $ this -> hasPlugin ( $ plugin -> getName ( ) ) ) { return ; } $ this -> plugins [ $ plugin -> getName ( ) ] = $ plugin ; }
Register plugin.

@param Plugin $plugin
Register plugin .