public function onInstallUpdateOrDump(ScriptEvent $event)
    {
        $this->state->loadSettings();
        $this->state->setDevMode($event->isDevMode());
        $this->mergeFiles($this->state->getIncludes(), false);
        $this->mergeFiles($this->state->getRequires(), true);

        if ($event->getName() === ScriptEvents::PRE_AUTOLOAD_DUMP) {
            $this->state->setDumpAutoloader(true);
            $flags = $event->getFlags();
            if (isset($flags['optimize'])) {
                $this->state->setOptimizeAutoloader($flags['optimize']);
            }
        }
    }
public function onInstallUpdateOrDump(ScriptEvent $event)
    {
        $this->state->loadSettings();
        $this->state->setDevMode($event->isDevMode());
        $this->mergeFiles($this->state->getIncludes(), false);
        $this->mergeFiles($this->state->getRequires(), true);

        if ($event->getName() === ScriptEvents::PRE_AUTOLOAD_DUMP) {
            $this->state->setDumpAutoloader(true);
            $flags = $event->getFlags();
            if (isset($flags['optimize'])) {
                $this->state->setOptimizeAutoloader($flags['optimize']);
            }
        }
    }
public function onInstallUpdateOrDump ( ScriptEvent $ event ) { $ this -> state -> loadSettings ( ) ; $ this -> state -> setDevMode ( $ event -> isDevMode ( ) ) ; $ this -> mergeFiles ( $ this -> state -> getIncludes ( ) , false ) ; $ this -> mergeFiles ( $ this -> state -> getRequires ( ) , true ) ; if ( $ event -> getName ( ) === ScriptEvents :: PRE_AUTOLOAD_DUMP ) { $ this -> state -> setDumpAutoloader ( true ) ; $ flags = $ event -> getFlags ( ) ; if ( isset ( $ flags [ 'optimize' ] ) ) { $ this -> state -> setOptimizeAutoloader ( $ flags [ 'optimize' ] ) ; } } }
Handle an event callback for an install, update or dump command by
checking for "merge-plugin" in the "extra" data and merging package
contents if found.

@param ScriptEvent $event
Handle an event callback for an install update or dump command by checking for merge - plugin in the extra data and merging package contents if found .