Wikimedia\Composer\Merge\PluginState::recurseIncludes PHP Method

recurseIncludes() public method

Should includes be recursively processed?
public recurseIncludes ( ) : boolean
return boolean
    public function recurseIncludes()
    {
        return $this->recurse;
    }

Usage Example

Example #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);
     }
 }
All Usage Examples Of Wikimedia\Composer\Merge\PluginState::recurseIncludes