XOOPS  2.6.0
Xoops\Core\ComposerUtility Class Reference

Public Member Functions

 __construct ()
 
 composerExecute ($command_line)
 
 getLastError ()
 
 getLastOutput ()
 
 setComposerExe ($overrideExe)
 

Private Attributes

 $errors = array()
 
 $exe = null
 
 $exeOptions = ' --no-ansi --no-interaction '
 
 $output = array()
 

Detailed Description

Definition at line 30 of file ComposerUtility.php.

Constructor & Destructor Documentation

Xoops\Core\ComposerUtility::__construct ( )

__construct

Definition at line 40 of file ComposerUtility.php.

Member Function Documentation

Xoops\Core\ComposerUtility::composerExecute (   $command_line)

composerExecute - execute a command using composer

Parameters
string$command_linecommand to pass to composer, i.e. 'update'
Returns
boolean true on success, false if command failed or could not execute

Definition at line 52 of file ComposerUtility.php.

References Xoops\Core\ComposerUtility\$errors, $options, Xoops\Core\ComposerUtility\$output, $process, $type, and XoopsBaseConfig\get().

Here is the call graph for this function:

Xoops\Core\ComposerUtility::getLastError ( )

getLastError - return errors from last composerExecute()

Returns
array

Definition at line 123 of file ComposerUtility.php.

References Xoops\Core\ComposerUtility\$errors.

Xoops\Core\ComposerUtility::getLastOutput ( )

getLastOutput - return output from last composerExecute()

Returns
array

Definition at line 113 of file ComposerUtility.php.

References Xoops\Core\ComposerUtility\$output.

Xoops\Core\ComposerUtility::setComposerExe (   $overrideExe)

setComposerExe - set a specific executable for Composer

By default symfony/process looks for a PHP executable, and it is passed an argument of a local copy of composer.phar. This method allows an override for these defaults to be specified. Invoke this method before composerExecute().

Parameters
string$overrideExecommand line to invoke composer
Returns
void

Definition at line 139 of file ComposerUtility.php.

Member Data Documentation

Xoops\Core\ComposerUtility::$errors = array()
private
Xoops\Core\ComposerUtility::$exe = null
private

Definition at line 33 of file ComposerUtility.php.

Xoops\Core\ComposerUtility::$exeOptions = ' --no-ansi --no-interaction '
private

Definition at line 34 of file ComposerUtility.php.

Xoops\Core\ComposerUtility::$output = array()
private

The documentation for this class was generated from the following file: