Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ClassMapGenerator.php

function ClassMapGenerator::avoidDuplicateScans

When calling scanPaths repeatedly with paths that may overlap, calling this will ensure that the same class is never scanned twice

You can provide your own FileList instance or use the default one if you pass no argument

Return value

$this

File

vendor/composer/class-map-generator/src/ClassMapGenerator.php, line 64

Class

ClassMapGenerator
ClassMapGenerator

Namespace

Composer\ClassMapGenerator

Code

public function avoidDuplicateScans(?FileList $scannedFiles = null) : self {
    $this->scannedFiles = $scannedFiles ?? new FileList();
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal