PHP Class Sylius\Bundle\ShippingBundle\Form\EventSubscriber\BuildShippingMethodFormSubscriber

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

Protected Properties

Property Type Description
$calculatorRegistry Sylius\Component\Registry\ServiceRegistryInterface
$factory Symfony\Component\Form\FormFactoryInterface

Public Methods

Method Description
__construct ( Sylius\Component\Registry\ServiceRegistryInterface $calculatorRegistry, Symfony\Component\Form\FormFactoryInterface $factory, Sylius\Bundle\ResourceBundle\Form\Registry\FormTypeRegistryInterface $formTypeRegistry )
getSubscribedEvents ( )
preSetData ( Symfony\Component\Form\FormEvent $event )
preSubmit ( Symfony\Component\Form\FormEvent $event )

Protected Methods

Method Description
addConfigurationFields ( Symfony\Component\Form\FormInterface $form, string $calculatorName, array $data = [] )

Method Details

__construct() public method

public __construct ( Sylius\Component\Registry\ServiceRegistryInterface $calculatorRegistry, Symfony\Component\Form\FormFactoryInterface $factory, Sylius\Bundle\ResourceBundle\Form\Registry\FormTypeRegistryInterface $formTypeRegistry )
$calculatorRegistry Sylius\Component\Registry\ServiceRegistryInterface
$factory Symfony\Component\Form\FormFactoryInterface
$formTypeRegistry Sylius\Bundle\ResourceBundle\Form\Registry\FormTypeRegistryInterface

addConfigurationFields() protected method

protected addConfigurationFields ( Symfony\Component\Form\FormInterface $form, string $calculatorName, array $data = [] )
$form Symfony\Component\Form\FormInterface
$calculatorName string
$data array

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

Property Details

$calculatorRegistry protected_oe property

protected ServiceRegistryInterface,Sylius\Component\Registry $calculatorRegistry
return Sylius\Component\Registry\ServiceRegistryInterface

$factory protected_oe property

protected FormFactoryInterface,Symfony\Component\Form $factory
return Symfony\Component\Form\FormFactoryInterface