public function postPackage(PackageEvent
$event) { $this->
handler()->
onPostPackageEvent($event);
} /**
* Pre command event callback.
*
* @param \Composer\Plugin\CommandEvent $event
* The Composer command event.
*/
public function onCommand(CommandEvent
$event) { if ($event->
getCommandName() == 'require'
) { if ($this->handler
) { throw new \
Error('Core Scaffold Plugin handler instantiated too early. See https://www.drupal.org/project/drupal/issues/3104922'
);
} $this->requireWasCalled = TRUE;
} } /**
* Instantiates the handler object upon demand.
*
* It is dangerous to update a Composer plugin if it loads any classes prior
* to the `composer update` operation, and later tries to use them in a
* post-update hook.
*/