PHP Class Eloquent\Composer\NpmBridge\NpmBridgePlugin

Inheritance: implements Composer\Plugin\PluginInterface, implements Composer\EventDispatcher\EventSubscriberInterface
Show file Open project: eloquent/composer-npm-bridge

Public Methods

Method Description
__construct ( NpmBridgeFactory $bridgeFactory = null ) Construct a new Composer NPM bridge plugin.
activate ( Composer\Composer $composer, Composer\IO\IOInterface $io ) Activate the plugin.
getSubscribedEvents ( ) : string>\array Get the event subscriber configuration for this plugin.
onPostInstallCmd ( Composer\Script\Event $event ) Handle post install command events.
onPostUpdateCmd ( Composer\Script\Event $event ) Handle post update command events.

Method Details

__construct() public method

Construct a new Composer NPM bridge plugin.
public __construct ( NpmBridgeFactory $bridgeFactory = null )
$bridgeFactory NpmBridgeFactory The bridge factory to use.

activate() public method

Activate the plugin.
public activate ( Composer\Composer $composer, Composer\IO\IOInterface $io )
$composer Composer\Composer The main Composer object.
$io Composer\IO\IOInterface The i/o interface to use.

getSubscribedEvents() public static method

Get the event subscriber configuration for this plugin.
public static getSubscribedEvents ( ) : string>\array
return string>\array

onPostInstallCmd() public method

Handle post install command events.
public onPostInstallCmd ( Composer\Script\Event $event )
$event Composer\Script\Event The event to handle.

onPostUpdateCmd() public method

Handle post update command events.
public onPostUpdateCmd ( Composer\Script\Event $event )
$event Composer\Script\Event The event to handle.