public function DefaultFileLocator::__construct

Initializes a new FileDriver that looks in the given path(s) for mapping documents and operates in the specified operating mode.

Parameters

string|array $paths One or multiple paths where mapping documents can be found.:

string|null $fileExtension:

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/DefaultFileLocator.php, line 56

Class

DefaultFileLocator
Locate the file that contains the metadata information for a given class name.

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function __construct($paths, $fileExtension = null) {
  $this
    ->addPaths((array) $paths);
  $this->fileExtension = $fileExtension;
}