From 7515c3a6892a13052d05dc85e759cdb7994adc24 Mon Sep 17 00:00:00 2001
From: lucashedding <lucashedding@1463982.no-reply.drupal.org>
Date: Tue, 12 Nov 2019 08:33:04 -0600
Subject: [PATCH] Issue #3093700 by heddn, ressa, rfay, rkoller: Improve
 requirements failures for composer workflow

---
 automatic_updates.install | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/automatic_updates.install b/automatic_updates.install
index cfc49c1a8c..0ceb563d16 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'),
-- 
GitLab