protected function addPackageAliases(PackageInterface $package, $aliasNormalized)
    {
        $alias = new AliasPackage($package, $aliasNormalized, $this->rootPackageVersion);
        $this->addPackage($alias);

        if (false === strpos('dev-', $aliasNormalized)) {
            $alias = new AliasPackage($package, $aliasNormalized.'-dev', $this->rootPackageVersion);
            $this->addPackage($alias);
        }

        return $package;
    }
protected function addPackageAliases(PackageInterface $package, $aliasNormalized)
    {
        $alias = new AliasPackage($package, $aliasNormalized, $this->rootPackageVersion);
        $this->addPackage($alias);

        if (false === strpos('dev-', $aliasNormalized)) {
            $alias = new AliasPackage($package, $aliasNormalized.'-dev', $this->rootPackageVersion);
            $this->addPackage($alias);
        }

        return $package;
    }
protected function addPackageAliases ( PackageInterface $ package , $ aliasNormalized ) { $ alias = new AliasPackage ( $ package , $ aliasNormalized , $ this -> rootPackageVersion ) ; $ this -> addPackage ( $ alias ) ; if ( false === strpos ( 'dev-' , $ aliasNormalized ) ) { $ alias = new AliasPackage ( $ package , $ aliasNormalized . '-dev' , $ this -> rootPackageVersion ) ; $ this -> addPackage ( $ alias ) ; } return $ package ; }
Add the alias packages.

@param PackageInterface $package         The current package
@param string           $aliasNormalized The alias version normalizes

@return PackageInterface
Add the alias packages .