Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator
Locate the file that contains the metadata information for a given class name.
This behavior is inpependent of the actual content of the file. It just detects
the file which is responsible for the given class name.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class DefaultFileLocator
implements
FileLocator
{
- // members
- protected array $paths;
- protected string $fileExtension;
- // methods
- public void __construct()
- public void addPaths()
- public array getPaths()
- public string getFileExtension()
- public void setFileExtension()
- public void findMappingFile()
- public void getAllClassNames()
- public void fileExists()
Hierarchy
Members
protected
- $fileExtension
—
string
The file extension of mapping documents. - $paths
—
array
The paths where to look for mapping files.
Methods
public
- __construct() — Initializes a new FileDriver that looks in the given path(s) for mapping documents and operates in the specified operating mode.
- addPaths() — Append lookup paths to metadata driver.
- fileExists() — {@inheritDoc}
- findMappingFile() — {@inheritDoc}
- getAllClassNames() — {@inheritDoc}
- getFileExtension() — Get the file extension used to look for mapping files under
- getPaths() — Retrieve the defined metadata lookup paths.
- setFileExtension() — Set the file extension used to look for mapping files under