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
$eccubeConfig
        protected
                EccubeConfig
        $eccubeConfig
            
            
$consoleApplication
        private
                Application
        $consoleApplication
            
            
$workingDir
        private
                mixed
        $workingDir
            
            
$baseInfoRepository
        private
                BaseInfoRepository
        $baseInfoRepository
            
            
Methods
__construct()
        public
                                __construct(
                    
                            $eccubeConfig :
                EccubeConfig
                            
                    
            ,                 $baseInfoRepository :
                BaseInfoRepository
                            
                )
        : mixed
    
    
            Parameters
- $eccubeConfig : EccubeConfig
 - $baseInfoRepository : BaseInfoRepository
 
Return values
mixedexecInfo()
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
Return values
arrayexecRequire()
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
Return values
stringexecRemove()
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
Return values
stringexecUpdate()
Run update command
        public
                                execUpdate(
                    
                            $dryRun :
                bool
                            
                    
            [,                 $output :
                null|OutputInterface
                 = null ]            
                )
        : mixed
    
    
            Parameters
- $dryRun : bool
 - $output : null|OutputInterface = null
 
Tags
Return values
mixedexecInstall()
Run install command
        public
                                execInstall(
                    
                            $dryRun :
                bool
                            
                    
            [,                 $output :
                null|OutputInterface
                 = null ]            
                )
        : mixed
    
    
            Parameters
- $dryRun : bool
 - $output : null|OutputInterface = null
 
Tags
Return values
mixedforeachRequires()
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
Return values
mixedexecConfig()
Run get config information
        public
                                execConfig(
                    
                            $key :
                string
                            
                    
            [,                 $value :
                null
                 = null ]            
                )
        : array|mixed
    
    
            Parameters
- $key : string
 - $value : null = null
 
Tags
Return values
array|mixedgetConfig()
Get config list
        public
                                getConfig(
                )
        : array
    
    
    
            Tags
Return values
arraysetWorkingDir()
Set work dir
        public
                                setWorkingDir(
                    
                            $workingDir :
                string
                            
                )
        : mixed
    
    
            Parameters
- $workingDir : string
 
Return values
mixedrunCommand()
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
Return values
stringinit()
Init composer console application
        private
                                init(
                    
            [                $BaseInfo :
                BaseInfo|null
                 = null ]            
                )
        : mixed
    
    
            Parameters
- $BaseInfo : BaseInfo|null = null
 
Tags
Return values
mixedinitConsole()
        private
                                initConsole(
                )
        : mixed
    
    
    
        
            Return values
mixedconfigureRepository()
        public
                                configureRepository(
                    
                            $BaseInfo :
                BaseInfo
                            
                )
        : mixed
    
    
            Parameters
- $BaseInfo : BaseInfo