protected function getClassMappingConfiguration($className)
{
if (array_key_exists($className, $this->mappings)) {
return $this->mappings[$className];
}
$reflection = new \ReflectionClass($className);
while ($reflection = $reflection->getParentClass()) {
if (array_key_exists($reflection->getName(), $this->mappings)) {
return $this->mappings[$reflection->getName()];
}
}
throw new MissingClassMappingConfigurationException($className, array_keys($this->mappings));
}