src/Event/Listener/Package.php
public function onInstalled(InstalledEvent $event)
    {
        if ($event->getPackage()->getType() == self::PLUGIN_TYPE) {
            $this->addPackage($event->getPackage());
        }
    }
public function onInstalled(InstalledEvent $event)
    {
        if ($event->getPackage()->getType() == self::PLUGIN_TYPE) {
            $this->addPackage($event->getPackage());
        }
    }
public function onInstalled ( InstalledEvent $ event ) { if ( $ event -> getPackage ( ) -> getType ( ) == self :: PLUGIN_TYPE ) { $ this -> addPackage ( $ event -> getPackage ( ) ) ; } }
Registr plugin.

@param InstalledEvent $event
Registr plugin .