Composer

class Composer (View source)

Properties

protected Filesystem $files The filesystem instance.
protected string|null $workingPath The working path to regenerate from.

Methods

void __construct(Filesystem $files, string|null $workingPath = null)

Create a new Composer manager instance.

void dumpAutoloads(string|array $extra = '')

Regenerate the Composer autoloader files.

void dumpOptimized()

Regenerate the optimized Composer autoloader files.

array findComposer()

Get the composer command for the environment.

string phpBinary()

Get the PHP binary.

Process getProcess(array $command)

Get a new Symfony process instance.

$this setWorkingPath(string $path)

Set the working path used by the class.

Details

void __construct(Filesystem $files, string|null $workingPath = null)

Create a new Composer manager instance.

Parameters

Filesystem $files
string|null $workingPath

Return Value

void

void dumpAutoloads(string|array $extra = '')

Regenerate the Composer autoloader files.

Parameters

string|array $extra

Return Value

void

void dumpOptimized()

Regenerate the optimized Composer autoloader files.

Return Value

void

protected array findComposer()

Get the composer command for the environment.

Return Value

array

protected string phpBinary()

Get the PHP binary.

Return Value

string

protected Process getProcess(array $command)

Get a new Symfony process instance.

Parameters

array $command

Return Value

Process

$this setWorkingPath(string $path)

Set the working path used by the class.

Parameters

string $path

Return Value

$this

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Support/Composer.html