Esempio n. 1
0
 protected function _findMappingFile($className)
 {
     $fileName = str_replace('\\', '.', $className) . $this->_fileExtension;
     $mappingFiles = array();
     // Check whether file exists
     foreach ((array) $this->_paths as $path) {
         if (file_exists($path . DIRECTORY_SEPARATOR . $fileName)) {
             $mappingFiles[] = $path . DIRECTORY_SEPARATOR . $fileName;
         }
     }
     if (empty($mappingFiles)) {
         throw MappingException::mappingFileNotFound($className, $fileName);
     }
     return $mappingFiles;
 }