Elcodi\Store\UserBundle\Form\Type\ProfileType::configureOptions PHP Метод

configureOptions() публичный Метод

Configures the options for this type.
public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver The resolver for the options.
    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefaults(['empty_data' => function () {
            $this->factory->create();
        }, 'data_class' => $this->factory->getEntityNamespace()]);
    }