protected findMappingFile ( $className ) : string | ||
$className | ||
return | string | The (absolute) file name. |
protected function findMappingFile($className)
{
$fileName = str_replace('\\', '.', $className) . $this->fileExtension;
// Check whether file exists
foreach ((array) $this->paths as $path) {
if (file_exists($path . DIRECTORY_SEPARATOR . $fileName)) {
return $path . DIRECTORY_SEPARATOR . $fileName;
}
}
return false;
//throw MappingException::mappingFileNotFound($className, $fileName);
}