protected function injectRequiredKeys(RootPackageInterface $rootPackage)
    {
        if (!isset($this->package['license']) && \count($rootPackage->getLicense()) > 0) {
            $license = current($rootPackage->getLicense());

            if ('proprietary' === $license) {
                if (!isset($this->package['private'])) {
                    $this->package['private'] = true;
                }
            } else {
                $this->package['license'] = $license;
            }
        }
    }
protected function injectRequiredKeys(RootPackageInterface $rootPackage)
    {
        if (!isset($this->package['license']) && \count($rootPackage->getLicense()) > 0) {
            $license = current($rootPackage->getLicense());

            if ('proprietary' === $license) {
                if (!isset($this->package['private'])) {
                    $this->package['private'] = true;
                }
            } else {
                $this->package['license'] = $license;
            }
        }
    }
protected function injectRequiredKeys ( RootPackageInterface $ rootPackage ) { if ( ! isset ( $ this -> package [ 'license' ] ) && \ count ( $ rootPackage -> getLicense ( ) ) > 0 ) { $ license = current ( $ rootPackage -> getLicense ( ) ) ; if ( 'proprietary' === $ license ) { if ( ! isset ( $ this -> package [ 'private' ] ) ) { $ this -> package [ 'private' ] = true ; } } else { $ this -> package [ 'license' ] = $ license ; } } }
Inject the required keys for asset package defined in root composer package.

@param RootPackageInterface $rootPackage The composer root package
Inject the required keys for asset package defined in root composer package .