PHP Класс PHPComposter\PHPComposter\Plugin
This main class activates and sets up the PHP Composter system within the package's .git folder.
Показать файл
Открыть проект
Защищенные свойства (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.
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.
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.
protected createGitHooks ( Composer\Util\Filesystem $filesystem ) |
$filesystem |
Composer\Util\Filesystem |
Reference to the Filesystem instance. |
getConfig()
публичный статический Метод
Generate the config file.
getGitHookNames()
защищенный статический Метод
Get an array with all known Git hooks.
getSubscribedEvents()
публичный статический Метод
Get the event subscriber configuration for this plugin.
linkBootstrapFiles()
защищенный Метод
Symlink the bootstrapping code into the .git folder.
protected linkBootstrapFiles ( Composer\Util\Filesystem $filesystem ) |
$filesystem |
Composer\Util\Filesystem |
Reference to the Filesystem instance. |
persistConfig()
публичный статический Метод
Persist the stored configuration.
public static persistConfig ( Composer\Script\Event $event ) |
$event |
Composer\Script\Event |
Event that was triggered. |
Описание свойств
$io защищенное статическое свойство
Instance of the IO interface.
protected static IOInterface,Composer\IO $io |
Результат |
Composer\IO\IOInterface |
|