src/Event/Listener/Package.php
public function onRemoved(RemovedEvent $event)
    {
        if ($event->getPackage()->getType() == self::PLUGIN_TYPE) {
            $plugin = $this->rep->find($event->getPackage()->getName());

            if ($plugin) {
                $this->em->remove($plugin);
                $this->em->flush();
            }
        }
    }
public function onRemoved(RemovedEvent $event)
    {
        if ($event->getPackage()->getType() == self::PLUGIN_TYPE) {
            $plugin = $this->rep->find($event->getPackage()->getName());

            if ($plugin) {
                $this->em->remove($plugin);
                $this->em->flush();
            }
        }
    }
public function onRemoved ( RemovedEvent $ event ) { if ( $ event -> getPackage ( ) -> getType ( ) == self :: PLUGIN_TYPE ) { $ plugin = $ this -> rep -> find ( $ event -> getPackage ( ) -> getName ( ) ) ; if ( $ plugin ) { $ this -> em -> remove ( $ plugin ) ; $ this -> em -> flush ( ) ; } } }
Unregistr plugin.

@param RemovedEvent $event
Unregistr plugin .