runComposerInstallAndRequireDevelopmentPackages() public method

Do an initial composer install in constructed project and require the development packages.
public runComposerInstallAndRequireDevelopmentPackages ( string $folder, array $packages ) : void
$folder string The folder to execute the command(s) in.
$packages array The development packages to require.
return void
Beispiel #1
0
 /**
  * Do an initial composer install and require the set development packages
  * in the constructed project.
  *
  * @param JonathanTorres\Construct\Helpers\Script $script
  *
  * @return void
  */
 protected function composerInstall(Script $script)
 {
     if ($this->file->isDirectory($this->projectLower)) {
         $script->runComposerInstallAndRequireDevelopmentPackages($this->projectLower, $this->developmentRequirements);
     }
 }