JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "InteractsWithComposerPackages.php"
Full Path: /home2/yvrgircc/public_html/ariseskilltech.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/InteractsWithComposerPackages.php
File size: 1.07 KB
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Illuminate\Foundation\Console;
use Symfony\Component\Process\Process;
use function Illuminate\Support\php_binary;
trait InteractsWithComposerPackages
{
/**
* Installs the given Composer Packages into the application.
*
* @param string $composer
* @param array $packages
* @return bool
*/
protected function requireComposerPackages(string $composer, array $packages)
{
if ($composer !== 'global') {
$command = [$this->phpBinary(), $composer, 'require'];
}
$command = array_merge(
$command ?? ['composer', 'require'],
$packages,
);
return ! (new Process($command, $this->laravel->basePath(), ['COMPOSER_MEMORY_LIMIT' => '-1']))
->setTimeout(null)
->run(function ($type, $output) {
$this->output->write($output);
});
}
/**
* Get the path to the appropriate PHP binary.
*
* @return string
*/
protected function phpBinary()
{
return php_binary();
}
}