You are here

public function DefaultFileLocator::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/DefaultFileLocator.php \Doctrine\Common\Persistence\Mapping\Driver\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 The file extension of mapping documents, usually prefixed with a dot.:

File

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

Class

DefaultFileLocator
Locates 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;
}