PHP Class Sylius\Bundle\AddressingBundle\Form\EventListener\BuildAddressFormSubscriber

Author: Paweł Jędrzejewski ([email protected])
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
显示文件 Open project: sylius/sylius

Public Methods

Method Description
__construct ( Doctrine\Common\Persistence\ObjectRepository $countryRepository, Symfony\Component\Form\FormFactoryInterface $factory )
getSubscribedEvents ( )
preSetData ( Symfony\Component\Form\FormEvent $event )
preSubmit ( Symfony\Component\Form\FormEvent $event )

Private Methods

Method Description
createProvinceCodeChoiceForm ( Sylius\Component\Addressing\Model\CountryInterface $country, string | null $provinceCode = null ) : Symfony\Component\Form\FormInterface
createProvinceNameTextForm ( string | null $provinceName = null ) : Symfony\Component\Form\FormInterface

Method Details

__construct() public method

public __construct ( Doctrine\Common\Persistence\ObjectRepository $countryRepository, Symfony\Component\Form\FormFactoryInterface $factory )
$countryRepository Doctrine\Common\Persistence\ObjectRepository
$factory Symfony\Component\Form\FormFactoryInterface

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

preSetData() public method

public preSetData ( Symfony\Component\Form\FormEvent $event )
$event Symfony\Component\Form\FormEvent

preSubmit() public method

public preSubmit ( Symfony\Component\Form\FormEvent $event )
$event Symfony\Component\Form\FormEvent