PHP Класс ComponentInstaller\Process\Process

Processes are initialized, and then run during installation.
Наследование: implements ComponentInstaller\Process\ProcessInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$componentDir string
$composer Composer\Composer
$config Composer\Config
$fs ComponentInstaller\Util\Filesystem
$installationManager Composer\Installer\InstallationManager The Composer installation manager to find Component vendor directories.
$io Composer\IO\IOInterface | Composer\IO\NullIO
$options array Any user provided options to configure this process.
$packages array

Открытые методы

Метод Описание
__construct ( Composer\Composer $composer = null, Composer\IO\IOInterface $io = null )
getComponentDir ( ) Retrieves the component directory.
getComponentName ( string $prettyName, array $extra = [] ) : string Retrieves the component name for the component.
getVendorDir ( array $package ) : string Retrieves the given package's vendor directory, where it's installed.
init ( )
process ( )
setComponentDir ( string $dir ) : string Sets the component directory.

Описание методов

__construct() публичный Метод

public __construct ( Composer\Composer $composer = null, Composer\IO\IOInterface $io = null )
$composer Composer\Composer
$io Composer\IO\IOInterface

getComponentDir() публичный Метод

Retrieves the component directory.
public getComponentDir ( )

getComponentName() публичный Метод

Retrieves the component name for the component.
public getComponentName ( string $prettyName, array $extra = [] ) : string
$prettyName string The Composer package name.
$extra array The extra config options sent from Composer.
Результат string The name of the component, without its vendor name.

getVendorDir() публичный Метод

Retrieves the given package's vendor directory, where it's installed.
public getVendorDir ( array $package ) : string
$package array The package to retrieve the vendor directory for.
Результат string

init() публичный Метод

public init ( )

process() публичный Метод

public process ( )

setComponentDir() публичный Метод

Sets the component directory.
public setComponentDir ( string $dir ) : string
$dir string
Результат string

Описание свойств

$componentDir защищенное свойство

protected string $componentDir
Результат string

$composer защищенное свойство

protected Composer,Composer $composer
Результат Composer\Composer

$config защищенное свойство

protected Config,Composer $config
Результат Composer\Config

$fs защищенное свойство

protected Filesystem,ComponentInstaller\Util $fs
Результат ComponentInstaller\Util\Filesystem

$installationManager защищенное свойство

The Composer installation manager to find Component vendor directories.
protected InstallationManager,Composer\Installer $installationManager
Результат Composer\Installer\InstallationManager

$io защищенное свойство

protected IOInterface,Composer\IO|NullIO,Composer\IO $io
Результат Composer\IO\IOInterface | Composer\IO\NullIO

$options защищенное свойство

Any user provided options to configure this process.
protected array $options
Результат array

$packages защищенное свойство

protected array $packages
Результат array