PHP Class Sylius\Bundle\CoreBundle\Form\EventSubscriber\BuildChannelBasedPromotionRuleFormSubscriber

Author: Mateusz Zalewski ([email protected])
Inheritance: extends Sylius\Bundle\PromotionBundle\Form\EventListener\AbstractConfigurationSubscriber
Datei anzeigen Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Component\Registry\ServiceRegistryInterface $ruleCheckerRegistry, Symfony\Component\Form\FormFactoryInterface $factory, Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository )

Protected Methods

Method Description
addConfigurationFields ( Symfony\Component\Form\FormInterface $form, $registryIdentifier, array $data = [] )
getConfiguration ( Sylius\Component\Promotion\Model\PromotionRuleInterface $rule ) : array

Private Methods

Method Description
createConfigurationField ( string $configuration, array $data ) : Symfony\Component\Form\FormInterface
createConfigurationFieldForChannel ( Sylius\Component\Core\Model\ChannelInterface $channel, string $configuration, array $data ) : Symfony\Component\Form\FormInterface

Method Details

__construct() public method

public __construct ( Sylius\Component\Registry\ServiceRegistryInterface $ruleCheckerRegistry, Symfony\Component\Form\FormFactoryInterface $factory, Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository )
$ruleCheckerRegistry Sylius\Component\Registry\ServiceRegistryInterface
$factory Symfony\Component\Form\FormFactoryInterface
$channelRepository Sylius\Component\Channel\Repository\ChannelRepositoryInterface

addConfigurationFields() protected method

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

getConfiguration() protected method

protected getConfiguration ( Sylius\Component\Promotion\Model\PromotionRuleInterface $rule ) : array
$rule Sylius\Component\Promotion\Model\PromotionRuleInterface
return array