You are here

Vendor.php in Automatic Updates 8

File

src/ReadinessChecker/Vendor.php
View source
<?php

namespace Drupal\automatic_updates\ReadinessChecker;


/**
 * Error if site is managed via composer instead of via tarballs.
 */
class Vendor extends Filesystem {

  /**
   * {@inheritdoc}
   */
  protected function doCheck() {
    if (!file_exists($this
      ->getVendorPath() . DIRECTORY_SEPARATOR . 'autoload.php')) {
      return [
        $this
          ->t('The vendor folder could not be located.'),
      ];
    }
    return [];
  }

}

Classes

Namesort descending Description
Vendor Error if site is managed via composer instead of via tarballs.