You are here

public function SymfonyFileLocator::addNamespacePrefixes in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/SymfonyFileLocator.php \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator::addNamespacePrefixes()

Adds Namespace Prefixes.

Parameters

array $prefixes:

Return value

void

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

File

vendor/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));
}