class
Illuminate
/
Support
/
Composer
Composer
Properties
protected
$workingPath string|null
The working path to regenerate from.
Default: null
Methods
public
__construct ( Filesystem $files , $workingPath ) : void
Create a new Composer manager instance.
Parameters
- $files Filesystem
- $workingPath string|null
public
requirePackages ( array $packages , bool $dev , $output ) : bool
Install the given Composer packages into the application.
Parameters
-
$packages
array
- $dev bool
- $output Closure |Symfony\...\OutputInterface|null
public
removePackages ( array $packages , bool $dev , $output ) : bool
Remove the given Composer packages from the application.
Parameters
-
$packages
array
- $dev bool
- $output Closure |Symfony\...\OutputInterface|null
public
modify ( callable $callback ) : void
Modify the "composer.json" file contents using the given callback.
Parameters
- $callback callable
public
dumpAutoloads ( $extra ) : int
Regenerate the Composer autoloader files.
Parameters
- $extra string|array
public
dumpOptimized ( ) : int
Regenerate the optimized Composer autoloader files.
public
findComposer ( ) : array
Get the composer command for the environment.
protected
phpBinary ( ) : string
Get the PHP binary.
protected
getProcess ( array $command , array $env ) : Symfony\...\Process
Get a new Symfony process instance.
Parameters
- $command array
- $env array
public
setWorkingPath ( $path ) : $this
Set the working path used by the class.
Parameters
- $path string
public
getVersion ( ) : string|null
Get the version of Composer.