You are here

public function DefaultFileLocator::__construct in Plug 7

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.:

File

lib/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;
}