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

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

Protected Properties

Свойство Type Description
$factory Symfony\Component\Form\FormFactoryInterface
$registry Sylius\Component\Registry\ServiceRegistryInterface

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode 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 méthode

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

addConfigurationFields() protected méthode

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

getConfiguration() abstract protected méthode

abstract protected getConfiguration ( $model ) : array
Résultat array

getRegistryIdentifier() protected méthode

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
Résultat null | string

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

postSetData() public méthode

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

preSetData() public méthode

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

preSubmit() public méthode

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

Property Details

$factory protected_oe property

protected FormFactoryInterface,Symfony\Component\Form $factory
Résultat Symfony\Component\Form\FormFactoryInterface

$registry protected_oe property

protected ServiceRegistryInterface,Sylius\Component\Registry $registry
Résultat Sylius\Component\Registry\ServiceRegistryInterface