PHP Class Barryvdh\Composer\CleanupPlugin

Inheritance: implements Composer\Plugin\PluginInterface, implements Composer\EventDispatcher\EventSubscriberInterface
显示文件 Open project: barryvdh/composer-cleanup-plugin

Protected Properties

Property Type Description
$composer Composer\Composer
$config Composer\Config
$filesystem Composer\Util\Filesystem
$io Composer\IO\IOInterface
$rules array

Public Methods

Method 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

Protected Methods

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

Method Details

activate() public method

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

cleanPackage() protected method

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

getSubscribedEvents() public static method

{@inheritDoc}
public static getSubscribedEvents ( )

onPostInstallUpdateCmd() public method

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

onPostPackageInstall() public method

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

onPostPackageUpdate() public method

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
return Composer\Composer

$config protected_oe property

protected Config,Composer $config
return Composer\Config

$filesystem protected_oe property

protected Filesystem,Composer\Util $filesystem
return Composer\Util\Filesystem

$io protected_oe property

protected IOInterface,Composer\IO $io
return Composer\IO\IOInterface

$rules protected_oe property

protected array $rules
return array