PHP Класс PHPComposter\PHPComposter\Plugin

This main class activates and sets up the PHP Composter system within the package's .git folder.
С версии: 0.1.0
Автор: Alain Schlesser ([email protected])
Наследование: implements Composer\Plugin\PluginInterface, implements Composer\EventDispatcher\EventSubscriberInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$io Composer\IO\IOInterface Instance of the IO interface.

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

Метод Описание
activate ( Composer\Composer $composer, Composer\IO\IOInterface $io ) Activate the Composer plugin.
getConfig ( ) : string Generate the config file.
getSubscribedEvents ( ) : string>\array Get the event subscriber configuration for this plugin.
persistConfig ( Composer\Script\Event $event ) Persist the stored configuration.

Защищенные методы

Метод Описание
cleanUp ( Composer\Util\Filesystem $filesystem ) Clean up previous installation.
createGitHooks ( Composer\Util\Filesystem $filesystem ) Symlink each known Git hook to the PHP Composter bootstrapping script.
getGitHookNames ( ) : array Get an array with all known Git hooks.
linkBootstrapFiles ( Composer\Util\Filesystem $filesystem ) Symlink the bootstrapping code into the .git folder.

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

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

Activate the Composer plugin.
С версии: 0.1.0
public activate ( Composer\Composer $composer, Composer\IO\IOInterface $io )
$composer Composer\Composer Reference to the Composer instance.
$io Composer\IO\IOInterface Reference to the IO interface.

cleanUp() защищенный Метод

Clean up previous installation.
С версии: 0.1.0
protected cleanUp ( Composer\Util\Filesystem $filesystem )
$filesystem Composer\Util\Filesystem Reference to the Filesystem instance.

createGitHooks() защищенный Метод

Symlink each known Git hook to the PHP Composter bootstrapping script.
С версии: 0.1.0
protected createGitHooks ( Composer\Util\Filesystem $filesystem )
$filesystem Composer\Util\Filesystem Reference to the Filesystem instance.

getConfig() публичный статический Метод

Generate the config file.
С версии: 0.1.0
public static getConfig ( ) : string
Результат string Generated Config file.

getGitHookNames() защищенный статический Метод

Get an array with all known Git hooks.
С версии: 0.1.0
protected static getGitHookNames ( ) : array
Результат array Array of strings.

getSubscribedEvents() публичный статический Метод

Get the event subscriber configuration for this plugin.
public static getSubscribedEvents ( ) : string>\array
Результат string>\array

linkBootstrapFiles() защищенный Метод

Symlink the bootstrapping code into the .git folder.
С версии: 0.1.0
protected linkBootstrapFiles ( Composer\Util\Filesystem $filesystem )
$filesystem Composer\Util\Filesystem Reference to the Filesystem instance.

persistConfig() публичный статический Метод

Persist the stored configuration.
С версии: 0.1.0
public static persistConfig ( Composer\Script\Event $event )
$event Composer\Script\Event Event that was triggered.

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

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

Instance of the IO interface.
С версии: 0.1.0
protected static IOInterface,Composer\IO $io
Результат Composer\IO\IOInterface