Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/Symfony/Component/Form/FormRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getType($name)
}
}

$this->resolveAndAddType($type);
$this->types[$name] = $this->resolveType($type);
}

return $this->types[$name];
Expand All @@ -102,7 +102,7 @@ public function getType($name)
*
* @return ResolvedFormTypeInterface The resolved type.
*/
private function resolveAndAddType(FormTypeInterface $type)
private function resolveType(FormTypeInterface $type)
{
$typeExtensions = array();
$parentType = $type->getParent();
Expand All @@ -115,13 +115,11 @@ private function resolveAndAddType(FormTypeInterface $type)
);
}

$resolvedType = $this->resolvedTypeFactory->createResolvedType(
return $this->resolvedTypeFactory->createResolvedType(
$type,
$typeExtensions,
$parentType ? $this->getType($parentType) : null
);

$this->types[$fqcn] = $resolvedType;
}

/**
Expand Down