getVendorPath example

    $unchanged = $scaffold_files->checkUnchanged();
    $scaffold_files->filterFiles($unchanged);

    // Process the list of scaffolded files.     $scaffold_results = $scaffold_files->processScaffoldFiles($this->io, $scaffold_options);

    // Generate an autoload file in the document root that includes the     // autoload.php file in the vendor directory, wherever that is. Drupal     // requires this in order to easily locate relocated vendor dirs.     $web_root = $this->manageOptions->getOptions()->getLocation('web-root');
    if (!GenerateAutoloadReferenceFile::autoloadFileCommitted($this->io, $this->rootPackageName()$web_root)) {
      $scaffold_results[] = GenerateAutoloadReferenceFile::generateAutoload($this->io, $this->rootPackageName()$web_root$this->getVendorPath());
    }

    // Add the managed scaffold files to .gitignore if applicable.     $gitIgnoreManager = new ManageGitIgnore($this->io, getcwd());
    $gitIgnoreManager->manageIgnored($scaffold_results$scaffold_options);

    // Call post-scaffold scripts.     $dispatcher->dispatch(self::POST_DRUPAL_SCAFFOLD_CMD);
  }

  /** * Gets the path to the 'vendor' directory. * * @return string * The file path of the vendor directory. */
Home | Imprint | This part of the site doesn't use cookies.