Skip to content

Commit

Permalink
[Form] remove obsolete private method in factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Oct 21, 2015
1 parent eb5211d commit 6dbc4b5
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions FormFactory.php
Expand Up @@ -130,32 +130,4 @@ public function createBuilderForProperty($class, $property, $data = null, array

return $this->createNamedBuilder($property, $type, $data, $options);
}

/**
* Wraps a type into a ResolvedFormTypeInterface implementation and connects
* it with its parent type.
*
* @param FormTypeInterface $type The type to resolve.
*
* @return ResolvedFormTypeInterface The resolved type.
*/
private function resolveType(FormTypeInterface $type)
{
$parentType = $type->getParent();

if ($parentType instanceof FormTypeInterface) {
$parentType = $this->resolveType($parentType);
} elseif (null !== $parentType) {
$parentType = $this->registry->getType($parentType);
}

return $this->resolvedTypeFactory->createResolvedType(
$type,
// Type extensions are not supported for unregistered type instances,
// i.e. type instances that are passed to the FormFactory directly,
// nor for their parents, if getParent() also returns a type instance.
array(),
$parentType
);
}
}

0 comments on commit 6dbc4b5

Please sign in to comment.