/**
* Sets the internal form factory on the given object.
*
* @param object $object The object
*
* @return void
*
* @since 4.0.0
*/
private function setFormFactoryOnObject($object)
{
if (!$object instanceof FormFactoryAwareInterface) {
return;
}
try {
$object->setFormFactory($this->getFormFactory());
} catch (\UnexpectedValueException $e) {
// Ignore it
}
}