You are here

public function SymfonyFileLocator::addNamespacePrefixes in Plug 7

Adds Namespace Prefixes.

Parameters

array $prefixes:

Return value

void

1 call to SymfonyFileLocator::addNamespacePrefixes()
SymfonyFileLocator::__construct in lib/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php
Constructor.

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php, line 89

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 addNamespacePrefixes(array $prefixes) {
  $this->prefixes = array_merge($this->prefixes, $prefixes);
  $this->paths = array_merge($this->paths, array_keys($prefixes));
}