PHP Класс Nwidart\Modules\Process\Installer

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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