1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Removing unused code

This commit is contained in:
Marco Pivetta 2012-01-17 13:14:39 +01:00
parent 34bb0c4943
commit e9f23d51e0

View File

@ -71,15 +71,5 @@ abstract class AbstractFileDriver extends FileDriver implements Driver
protected function findMappingFile($className)
{
return $this->locator->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;
}
}
throw MappingException::mappingFileNotFound($className, $fileName);
}
}