public function onPluginCommand(CommandEvent $event)
    {
        if ($this->config->get('enabled', true)) {
            ConfigBuilder::validate($this->io, $this->composer->getPackage(), $event->getCommandName());

            if (!\in_array($event->getCommandName(), array('install', 'update'), true)) {
                $this->packageFilter->setEnabled(false);
            }
        }
    }
public function onPluginCommand(CommandEvent $event)
    {
        if ($this->config->get('enabled', true)) {
            ConfigBuilder::validate($this->io, $this->composer->getPackage(), $event->getCommandName());

            if (!\in_array($event->getCommandName(), array('install', 'update'), true)) {
                $this->packageFilter->setEnabled(false);
            }
        }
    }
public function onPluginCommand ( CommandEvent $ event ) { if ( $ this -> config -> get ( 'enabled' , true ) ) { ConfigBuilder :: validate ( $ this -> io , $ this -> composer -> getPackage ( ) , $ event -> getCommandName ( ) ) ; if ( ! \ in_array ( $ event -> getCommandName ( ) , array ( 'install' , 'update' ) , true ) ) { $ this -> packageFilter -> setEnabled ( false ) ; } } }
Disable the package filter for all command, but for install and update command.

@param CommandEvent $event
Disable the package filter for all command but for install and update command .