recurseIncludes() публичный Метод

Should includes be recursively processed?
public recurseIncludes ( ) : boolean
Результат boolean
Пример #1
0
 /**
  * Read a JSON file and merge its contents
  *
  * @param RootPackageInterface $root
  * @param string $path
  */
 protected function mergeFile(RootPackageInterface $root, $path)
 {
     if (isset($this->loadedFiles[$path])) {
         $this->logger->debug("Already merged <comment>{$path}</comment>");
         return;
     } else {
         $this->loadedFiles[$path] = true;
     }
     $this->logger->info("Loading <comment>{$path}</comment>...");
     $package = new ExtraPackage($path, $this->composer, $this->logger);
     $package->mergeInto($root, $this->state);
     if ($this->state->recurseIncludes()) {
         $this->mergeFiles($package->getIncludes(), false);
         $this->mergeFiles($package->getRequires(), true);
     }
 }
Пример #2
0
 /**
  * Read a JSON file and merge its contents
  *
  * @param RootPackage $root
  * @param string $path
  */
 protected function mergeFile(RootPackage $root, $path)
 {
     if (isset($this->loadedFiles[$path])) {
         $this->logger->debug("Skipping duplicate <comment>{$path}</comment>...");
         return;
     } else {
         $this->loadedFiles[$path] = true;
     }
     $this->logger->debug("Loading <comment>{$path}</comment>...");
     $package = new ExtraPackage($path, $this->composer, $this->logger);
     $package->mergeInto($root, $this->state);
     if ($this->state->recurseIncludes()) {
         $this->mergeIncludes($package->getIncludes());
     }
 }