class
Illuminate
/
Support
/
Composer
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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
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 ) : Symfony\...\Process
Get a new Symfony process instance.
Parameters
- $command 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.