public function getPackageManager($siteDir, IOInterface $io)
    {
        $embeddedComposer = $this->getEmbeddedComposer($siteDir, 'composer.json', 'vendor');
        $embeddedComposer->processAdditionalAutoloads();

        return new PackageManager($embeddedComposer, $io);
    }
public function getPackageManager($siteDir, IOInterface $io)
    {
        $embeddedComposer = $this->getEmbeddedComposer($siteDir, 'composer.json', 'vendor');
        $embeddedComposer->processAdditionalAutoloads();

        return new PackageManager($embeddedComposer, $io);
    }
public function getPackageManager ( $ siteDir , IOInterface $ io ) { $ embeddedComposer = $ this -> getEmbeddedComposer ( $ siteDir , 'composer.json' , 'vendor' ) ; $ embeddedComposer -> processAdditionalAutoloads ( ) ; return new PackageManager ( $ embeddedComposer , $ io ) ; }
Returns an instance of PackageManager.
It is configured to read a composer.json file.

@param string $siteDir Root directory of an Spress site

@return PackageManager
Returns an instance of PackageManager . It is configured to read a composer . json file .