diff --git a/automatic_updates.install b/automatic_updates.install index cfc49c1a8ca6737b866aa9680b86564f122f4550..0ceb563d16aae65882decbf6d1b68d6bb66a1a10 100644 --- a/automatic_updates.install +++ b/automatic_updates.install @@ -14,8 +14,9 @@ use Drupal\Core\Url; * Implements hook_requirements(). */ function automatic_updates_requirements($phase) { - $vendor_checker = new Vendor(\Drupal::getContainer()->get('app.root')); - if (!empty($vendor_checker->run())) { + // Mimic the functionality of the vendor checker procedurally since class + // loading isn't available pre module install. + if (!file_exists(implode(DIRECTORY_SEPARATOR, [DRUPAL_ROOT, 'vendor', 'autoload.php']))) { return [ 'not installable' => [ 'title' => t('Automatic Updates'),