src/Form/Address/ShippingAddressType.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Form\Address;
  3. use App\Entity\Address\ShippingAddress;
  4. use Symfony\Component\Form\AbstractType;
  5. use Symfony\Component\Form\FormBuilderInterface;
  6. use Symfony\Component\OptionsResolver\OptionsResolver;
  7. use Symfony\Component\Form\Extension\Core\Type\{TextTypeEmailTypeCheckboxTypePasswordType};
  8. class ShippingAddressType extends AddressType
  9. {
  10.     public function configureOptions(OptionsResolver $resolver): void
  11.     {
  12.         $resolver->setDefaults([
  13.             'data_class' => ShippingAddress::class,
  14.         ]);
  15.     }
  16. }