protected function loadClassFromPossiblePaths(array $possiblePaths, array $namespaceParts, $packageNamespacePartCount)
{
foreach ($possiblePaths as $possiblePathData) {
$possibleFilePath = '';
if ($possiblePathData['mappingType'] === self::MAPPING_TYPE_PSR0) {
$possibleFilePath = $this->buildClassPathWithPsr0($namespaceParts, $possiblePathData['path'], $packageNamespacePartCount);
}
if ($possiblePathData['mappingType'] === self::MAPPING_TYPE_PSR4) {
$possibleFilePath = $this->buildClassPathWithPsr4($namespaceParts, $possiblePathData['path'], $packageNamespacePartCount);
}
if (is_file($possibleFilePath)) {
$result = (include_once $possibleFilePath);
if ($result !== false) {
return true;
}
}
}
return false;
}