Doctrine\Common\Persistence\Mapping\Driver\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.
- Author: Fabien Potencier <fabien@symfony.com>
- License: MIT
Synopsis
class SymfonyFileLocator
implements
FileLocator
{
- // members
- protected array $paths;
- protected array $prefixes;
- protected string $fileExtension;
- // methods
- public void __construct()
- public void addNamespacePrefixes()
- public array getNamespacePrefixes()
- public void getPaths()
- public void getFileExtension()
- public void setFileExtension()
- public void fileExists()
- public void getAllClassNames()
- public void findMappingFile()
Hierarchy
Members
protected
- $fileExtension
—
string
File extension that is searched for. - $paths
—
array
The paths where to look for mapping files. - $prefixes
—
array
A map of mapping directory path to namespace prefix used to expand class shortnames.
Methods
public
- __construct() — Constructor
- addNamespacePrefixes() — Add Namespace Prefixes
- fileExists() — {@inheritDoc}
- findMappingFile() — {@inheritDoc}
- getAllClassNames() — {@inheritDoc}
- getFileExtension() — {@inheritDoc}
- getNamespacePrefixes() — Get Namespace Prefixes
- getPaths() — {@inheritDoc}
- setFileExtension() — Set the file extension used to look for mapping files under