PHP 클래스 Nwidart\Modules\Process\Installer

파일 보기 프로젝트 열기: nwidart/laravel-modules 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$console Illuminate\Console\Command The console command instance.
$name string The module name.
$path string The destionation path.
$repository Nwidart\Modules\Repository The module repository instance.
$timeout integer The process timeout.
$version string The version of module being installed.

공개 메소드들

메소드 설명
__construct ( string $name, string $version = null, string $type = null, boolean $tree = false ) The constructor.
getBranch ( ) : string Get branch name.
getDestinationPath ( ) : string Get destination path.
getModuleName ( ) : string Get module name.
getPackageName ( ) : string Get composer package name.
getProcess ( ) : Process Get process instance.
getRepoUrl ( ) : string | null Get git repo url.
installViaComposer ( ) : Process Install the module via composer.
installViaGit ( ) : Process Install the module via git.
installViaSubtree ( ) : Process Install the module via git subtree.
run ( ) : Process Run the installation process.
setConsole ( Illuminate\Console\Command $console ) Set console command instance.
setPath ( string $path ) Set destination path.
setRepository ( Repository $repository ) Set the module repository instance.
setTimeout ( integer $timeout ) Set process timeout.

메소드 상세

__construct() 공개 메소드

The constructor.
public __construct ( string $name, string $version = null, string $type = null, boolean $tree = false )
$name string
$version string
$type string
$tree boolean

getBranch() 공개 메소드

Get branch name.
public getBranch ( ) : string
리턴 string

getDestinationPath() 공개 메소드

Get destination path.
public getDestinationPath ( ) : string
리턴 string

getModuleName() 공개 메소드

Get module name.
public getModuleName ( ) : string
리턴 string

getPackageName() 공개 메소드

Get composer package name.
public getPackageName ( ) : string
리턴 string

getProcess() 공개 메소드

Get process instance.
public getProcess ( ) : Process
리턴 Symfony\Component\Process\Process

getRepoUrl() 공개 메소드

Get git repo url.
public getRepoUrl ( ) : string | null
리턴 string | null

installViaComposer() 공개 메소드

Install the module via composer.
public installViaComposer ( ) : Process
리턴 Symfony\Component\Process\Process

installViaGit() 공개 메소드

Install the module via git.
public installViaGit ( ) : Process
리턴 Symfony\Component\Process\Process

installViaSubtree() 공개 메소드

Install the module via git subtree.
public installViaSubtree ( ) : Process
리턴 Symfony\Component\Process\Process

run() 공개 메소드

Run the installation process.
public run ( ) : Process
리턴 Symfony\Component\Process\Process

setConsole() 공개 메소드

Set console command instance.
public setConsole ( Illuminate\Console\Command $console )
$console Illuminate\Console\Command

setPath() 공개 메소드

Set destination path.
public setPath ( string $path )
$path string

setRepository() 공개 메소드

Set the module repository instance.
public setRepository ( Repository $repository )
$repository Nwidart\Modules\Repository

setTimeout() 공개 메소드

Set process timeout.
public setTimeout ( integer $timeout )
$timeout integer

프로퍼티 상세

$console 보호되어 있는 프로퍼티

The console command instance.
protected Command,Illuminate\Console $console
리턴 Illuminate\Console\Command

$name 보호되어 있는 프로퍼티

The module name.
protected string $name
리턴 string

$path 보호되어 있는 프로퍼티

The destionation path.
protected string $path
리턴 string

$repository 보호되어 있는 프로퍼티

The module repository instance.
protected Repository,Nwidart\Modules $repository
리턴 Nwidart\Modules\Repository

$timeout 보호되어 있는 프로퍼티

The process timeout.
protected int $timeout
리턴 integer

$version 보호되어 있는 프로퍼티

The version of module being installed.
protected string $version
리턴 string