WP_CLI

PackageManagerEventSubscriber::pre_install()public staticWP-CLI 1.0

Pre-install operation message.

Method of the class: PackageManagerEventSubscriber{}

No Hooks.

Return

null. Nothing.

Usage

$result = PackageManagerEventSubscriber::pre_install( $event );
$event(\Composer\Installer\PackageEvent) (required)
-

PackageManagerEventSubscriber::pre_install() code WP-CLI 2.8.0-alpha

public static function pre_install( PackageEvent $event ) {
	$operation_message = $event->getOperation()->__toString();
	WP_CLI::log( ' - ' . $operation_message );
}