public function SymfonyFileLocator::__construct

Constructor

Parameters

array $prefixes:

string|null $fileExtension:

File

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

Class

SymfonyFileLocator
The Symfony File Locator makes a simplifying assumptions compared to the DefaultFileLocator. By assuming paths only contain entities of a certain namespace the mapping files consists of the short classname only.

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

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