EC-CUBE4 APIドキュメント

ComposerApiService implements ComposerServiceInterface

Class ComposerApiService

Table of Contents

$eccubeConfig EccubeConfig
$consoleApplication Application
$workingDir
$baseInfoRepository BaseInfoRepository
__construct() mixed
execInfo() Run get info command array
execRequire() Run execute command string
execRemove() Run remove command string
execUpdate() Run update command mixed
execInstall() Run install command mixed
foreachRequires() Get require mixed
execConfig() Run get config information array|mixed
getConfig() Get config list array
setWorkingDir() Set work dir mixed
runCommand() Run composer command string
init() Init composer console application mixed
initConsole() mixed
configureRepository() mixed

Properties

Methods

execInfo()

Run get info command

public execInfo( $pluginName : string , $version : string|null ) : array
Parameters
$pluginName : string

format foo/bar or foo/bar:1.0.0 or "foo/bar 1.0.0"

$version : string|null
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
Return values
array

execRequire()

Run execute command

public execRequire( $packageName : string [, $output : null|OutputInterface = null ] ) : string
Parameters
$packageName : string

format "foo/bar foo/bar:1.0.0"

$output : null|OutputInterface = null
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
Return values
string

execRemove()

Run remove command

public execRemove( $packageName : string [, $output : null|OutputInterface = null ] ) : string
Parameters
$packageName : string

format "foo/bar foo/bar:1.0.0"

$output : null|OutputInterface = null
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
Return values
string

execUpdate()

Run update command

public execUpdate( $dryRun : bool [, $output : null|OutputInterface = null ] ) : mixed
Parameters
$dryRun : bool
$output : null|OutputInterface = null
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
Return values
mixed

execInstall()

Run install command

public execInstall( $dryRun : bool [, $output : null|OutputInterface = null ] ) : mixed
Parameters
$dryRun : bool
$output : null|OutputInterface = null
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
Return values
mixed

foreachRequires()

Get require

public foreachRequires( $packageName : string , $version : string|null , $callback : string [, $typeFilter : null = null ] , $level : int ) : mixed
Parameters
$packageName : string
$version : string|null
$callback : string
$typeFilter : null = null
$level : int
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
Return values
mixed

execConfig()

Run get config information

public execConfig( $key : string [, $value : null = null ] ) : array|mixed
Parameters
$key : string
$value : null = null
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
Return values
array|mixed

getConfig()

Get config list

public getConfig( ) : array
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
Return values
array

setWorkingDir()

Set work dir

public setWorkingDir( $workingDir : string ) : mixed
Parameters
$workingDir : string
Return values
mixed

runCommand()

Run composer command

public runCommand( $commands : array [, $output : null|OutputInterface = null ] [, $init : bool = true ] ) : string
Parameters
$commands : array
$output : null|OutputInterface = null
$init : bool = true
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
throws
Exception
Return values
string

init()

Init composer console application

private init( [ $BaseInfo : BaseInfo|null = null ] ) : mixed
Parameters
$BaseInfo : BaseInfo|null = null
Tags
throws
PluginException
throws
NoResultException
throws
NonUniqueResultException
Return values
mixed

Search results