Property | Type | Description | |
---|---|---|---|
$fileExtension | string | The file extension of mapping documents. | |
$paths | array | The paths where to look for mapping files. |
Method | Description | |
---|---|---|
__construct ( string | array $paths ) | Initializes a new FileDriver that looks in the given path(s) for mapping documents and operates in the specified operating mode. | |
addPaths ( array $paths ) | Append lookup paths to metadata driver. | |
getAllClassNames ( ) : array | Gets the names of all mapped classes known to this driver. | |
getElement ( $className ) : array | Get the element of schema meta data for the class from the mapping file. | |
getFileExtension ( ) : void | Get the file extension used to look for mapping files under | |
getPaths ( ) : array | Retrieve the defined metadata lookup paths. | |
isTransient ( string $className ) : boolean | Whether the class with the specified name should have its metadata loaded. | |
setFileExtension ( string $fileExtension ) : void | Set the file extension used to look for mapping files under |
Method | Description | |
---|---|---|
findMappingFile ( $className ) : string | Finds the mapping file for the class with the given name by searching through the configured paths. | |
loadMappingFile ( string $file ) : array | Loads a mapping file with the given name and returns a map from class/entity names to their corresponding elements. |
public __construct ( string | array $paths ) | ||
$paths | string | array | One or multiple paths where mapping documents can be found. |
protected findMappingFile ( $className ) : string | ||
$className | ||
return | string | The (absolute) file name. |
public getAllClassNames ( ) : array | ||
return | array | The names of all mapped classes known to this driver. |
public getElement ( $className ) : array | ||
return | array | $element The element of schema meta data |
public getFileExtension ( ) : void | ||
return | void |
public isTransient ( string $className ) : boolean | ||
$className | string | |
return | boolean |
abstract protected loadMappingFile ( string $file ) : array | ||
$file | string | The mapping file to load. |
return | array |
public setFileExtension ( string $fileExtension ) : void | ||
$fileExtension | string | The file extension to set |
return | void |
protected string $fileExtension | ||
return | string |
protected array $paths | ||
return | array |