PHP Class Barryvdh\Composer\CleanupPlugin

Inheritance: implements Composer\Plugin\PluginInterface, implements Composer\EventDispatcher\EventSubscriberInterface
Afficher le fichier Open project: barryvdh/composer-cleanup-plugin

Protected Properties

Свойство Type Description
$composer Composer\Composer
$config Composer\Config
$filesystem Composer\Util\Filesystem
$io Composer\IO\IOInterface
$rules array

Méthodes publiques

Méthode Description
activate ( Composer\Composer $composer, Composer\IO\IOInterface $io ) {@inheritDoc}
getSubscribedEvents ( ) {@inheritDoc}
onPostInstallUpdateCmd ( Composer\Script\CommandEvent $event ) Function to run after a package has been updated
onPostPackageInstall ( Composer\Script\PackageEvent $event ) Function to run after a package has been installed
onPostPackageUpdate ( Composer\Script\PackageEvent $event ) Function to run after a package has been updated

Méthodes protégées

Méthode Description
cleanPackage ( Composer\Package\BasePackage $package ) : boolean Clean a package, based on its rules.

Method Details

activate() public méthode

{@inheritDoc}
public activate ( Composer\Composer $composer, Composer\IO\IOInterface $io )
$composer Composer\Composer
$io Composer\IO\IOInterface

cleanPackage() protected méthode

Clean a package, based on its rules.
protected cleanPackage ( Composer\Package\BasePackage $package ) : boolean
$package Composer\Package\BasePackage The package to clean
Résultat boolean True if cleaned

getSubscribedEvents() public static méthode

{@inheritDoc}
public static getSubscribedEvents ( )

onPostInstallUpdateCmd() public méthode

Function to run after a package has been updated
public onPostInstallUpdateCmd ( Composer\Script\CommandEvent $event )
$event Composer\Script\CommandEvent

onPostPackageInstall() public méthode

Function to run after a package has been installed
public onPostPackageInstall ( Composer\Script\PackageEvent $event )
$event Composer\Script\PackageEvent

onPostPackageUpdate() public méthode

Function to run after a package has been updated
public onPostPackageUpdate ( Composer\Script\PackageEvent $event )
$event Composer\Script\PackageEvent

Property Details

$composer protected_oe property

protected Composer,Composer $composer
Résultat Composer\Composer

$config protected_oe property

protected Config,Composer $config
Résultat Composer\Config

$filesystem protected_oe property

protected Filesystem,Composer\Util $filesystem
Résultat Composer\Util\Filesystem

$io protected_oe property

protected IOInterface,Composer\IO $io
Résultat Composer\IO\IOInterface

$rules protected_oe property

protected array $rules
Résultat array