Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ( $pathToComposerHome, $pathToComposerJson, Application $consoleApplication=null, ConsoleArrayInputFactory $consoleArrayInputFactory=null, BufferedOutput $consoleOutput=null) | |
createComposer () | |
runComposerCommand (array $commandParams, $workingDir=null) | |
Data Fields | |
const | COMPOSER_WORKING_DIR = '--working-dir' |
Class MagentoComposerApplication
This class provides ability to set composer application settings and run any composer command. Also provides method to get Composer instance so you can have access composer properties lie Locker
Definition at line 20 of file MagentoComposerApplication.php.
__construct | ( | $pathToComposerHome, | |
$pathToComposerJson, | |||
Application | $consoleApplication = null , |
||
ConsoleArrayInputFactory | $consoleArrayInputFactory = null , |
||
BufferedOutput | $consoleOutput = null |
||
) |
Constructs class
string | $pathToComposerHome | |
string | $pathToComposerJson | |
Application | $consoleApplication | |
ConsoleArrayInputFactory | $consoleArrayInputFactory | |
BufferedOutput | $consoleOutput |
Definition at line 65 of file MagentoComposerApplication.php.
createComposer | ( | ) |
Creates composer object
Definition at line 91 of file MagentoComposerApplication.php.
runComposerCommand | ( | array | $commandParams, |
$workingDir = null |
|||
) |
Runs composer command
array | $commandParams | |
string | null | $workingDir |
Definition at line 104 of file MagentoComposerApplication.php.
const COMPOSER_WORKING_DIR = '--working-dir' |
Definition at line 23 of file MagentoComposerApplication.php.