fix type assignement
This commit is contained in:
parent
4d2ea16b90
commit
cc2645404a
@ -88,7 +88,7 @@ class FormRegistry implements FormRegistryInterface
|
||||
}
|
||||
}
|
||||
|
||||
$this->resolveAndAddType($type);
|
||||
$this->types[$name] = $this->resolveType($type);
|
||||
}
|
||||
|
||||
return $this->types[$name];
|
||||
@ -102,7 +102,7 @@ class FormRegistry implements FormRegistryInterface
|
||||
*
|
||||
* @return ResolvedFormTypeInterface The resolved type.
|
||||
*/
|
||||
private function resolveAndAddType(FormTypeInterface $type)
|
||||
private function resolveType(FormTypeInterface $type)
|
||||
{
|
||||
$typeExtensions = array();
|
||||
$parentType = $type->getParent();
|
||||
@ -115,13 +115,11 @@ class FormRegistry implements FormRegistryInterface
|
||||
);
|
||||
}
|
||||
|
||||
$resolvedType = $this->resolvedTypeFactory->createResolvedType(
|
||||
return $this->resolvedTypeFactory->createResolvedType(
|
||||
$type,
|
||||
$typeExtensions,
|
||||
$parentType ? $this->getType($parentType) : null
|
||||
);
|
||||
|
||||
$this->types[$fqcn] = $resolvedType;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user