public function ReadinessCheckEvent::__construct in Automatic Updates 8.2
Constructs a ReadinessCheckEvent object.
Parameters
\Drupal\package_manager\ComposerUtility $active_composer: A Composer utility object for the active directory.
string[] $package_versions: (optional) The desired package versions to update to, keyed by package name.
Overrides UpdateEvent::__construct
File
- src/
Event/ ReadinessCheckEvent.php, line 23
Class
- ReadinessCheckEvent
- Event fired when checking if the site could perform an update.
Namespace
Drupal\automatic_updates\EventCode
public function __construct(ComposerUtility $active_composer, array $package_versions = []) {
parent::__construct($active_composer);
$this->packageVersions = $package_versions;
}