PHP Class Sylius\Bundle\PromotionBundle\Form\EventListener\AbstractConfigurationSubscriber

Author: Arnaud Langlade ([email protected])
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Show file Open project: sylius/sylius Class Usage Examples

Protected Properties

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

Public Methods

Method Description
__construct ( Sylius\Component\Registry\ServiceRegistryInterface $registry, Symfony\Component\Form\FormFactoryInterface $factory )
getSubscribedEvents ( )
postSetData ( Symfony\Component\Form\FormEvent $event )
preSetData ( Symfony\Component\Form\FormEvent $event )
preSubmit ( Symfony\Component\Form\FormEvent $event )

Protected Methods

Method Description
addConfigurationFields ( Symfony\Component\Form\FormInterface $form, string $registryIdentifier, array $data = [] )
getConfiguration ( $model ) : array
getRegistryIdentifier ( Sylius\Component\Promotion\Model\PromotionDynamicTypeInterface $rule = null, Symfony\Component\Form\FormInterface $form ) : null | string

Method Details

__construct() public method

public __construct ( Sylius\Component\Registry\ServiceRegistryInterface $registry, Symfony\Component\Form\FormFactoryInterface $factory )
$registry Sylius\Component\Registry\ServiceRegistryInterface
$factory Symfony\Component\Form\FormFactoryInterface

addConfigurationFields() protected method

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

getConfiguration() abstract protected method

abstract protected getConfiguration ( $model ) : array
return array

getRegistryIdentifier() protected method

protected getRegistryIdentifier ( Sylius\Component\Promotion\Model\PromotionDynamicTypeInterface $rule = null, Symfony\Component\Form\FormInterface $form ) : null | string
$rule Sylius\Component\Promotion\Model\PromotionDynamicTypeInterface
$form Symfony\Component\Form\FormInterface
return null | string

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

postSetData() public method

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

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

$factory protected property

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

$registry protected property

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