PostPackageEventListenerInterface.php

Same filename in other branches
  1. 9 composer/Plugin/Scaffold/PostPackageEventListenerInterface.php
  2. 8.9.x composer/Plugin/Scaffold/PostPackageEventListenerInterface.php
  3. 11.x composer/Plugin/Scaffold/PostPackageEventListenerInterface.php

Namespace

Drupal\Composer\Plugin\Scaffold

File

composer/Plugin/Scaffold/PostPackageEventListenerInterface.php

View source
<?php

namespace Drupal\Composer\Plugin\Scaffold;

use Composer\Installer\PackageEvent;

/**
 * Interface for post package event listeners.
 *
 * @see \Drupal\Composer\Plugin\Scaffold\Handler::onPostPackageEvent
 *
 * @internal
 */
interface PostPackageEventListenerInterface {
    
    /**
     * Handles package events during a 'composer require' operation.
     *
     * @param \Composer\Installer\PackageEvent $event
     *   Composer package event sent on install/update/remove.
     */
    public function event(PackageEvent $event);

}

Interfaces

Title Deprecated Summary
PostPackageEventListenerInterface Interface for post package event listeners.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.