You are here

class Vendor in Automatic Updates 8

Error if site is managed via composer instead of via tarballs.

Hierarchy

Expanded class hierarchy of Vendor

1 file declares its use of Vendor
VendorTest.php in tests/src/Kernel/ReadinessChecker/VendorTest.php
1 string reference to 'Vendor'
automatic_updates.services.yml in ./automatic_updates.services.yml
automatic_updates.services.yml
1 service uses Vendor
automatic_updates.vendor in ./automatic_updates.services.yml
Drupal\automatic_updates\ReadinessChecker\Vendor

File

src/ReadinessChecker/Vendor.php, line 8

Namespace

Drupal\automatic_updates\ReadinessChecker
View source
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 [];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Filesystem::$rootPath protected property The root file path.
Filesystem::$vendorPath protected property The vendor file path.
Filesystem::areSameLogicalDisk protected function Determine if the root and vendor file system are the same logical disk. 2
Filesystem::getRootPath protected function Get the root file path.
Filesystem::getVendorPath protected function Get the vendor file path.
Filesystem::run public function Run check. Overrides ReadinessCheckerInterface::run
Filesystem::__construct public function Filesystem constructor. 1
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
Vendor::doCheck protected function Perform checks. Overrides Filesystem::doCheck