WorkingDirectorySwitcher

Class
Final: Yes

Applies Composer-like working-directory switching for the standalone binary.

Table of Contents

Interfaces

WorkingDirectorySwitcherInterface

Switches the process working directory before command execution starts.

Methods

switchTo()

Switches to the provided working directory when one is configured.

 : void
Methods

switchTo()

Public

Switches to the provided working directory when one is configured.

public switchTo( string|null  $workingDirectory) : void
Parameters
$workingDirectory : string|null

Description

the target working directory, or null when no switch is requested