Skip to content
Snippets Groups Projects
Commit 7515c3a6 authored by Lucas Hedding's avatar Lucas Hedding Committed by Lucas Hedding
Browse files

Issue #3093700 by heddn, ressa, rfay, rkoller: Improve requirements failures for composer workflow

parent a5952429
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment