PHP 클래스 Sylius\Bundle\CoreBundle\Form\EventSubscriber\BuildChannelBasedPromotionRuleFormSubscriber

저자: Mateusz Zalewski ([email protected])
상속: extends Sylius\Bundle\PromotionBundle\Form\EventListener\AbstractConfigurationSubscriber
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
__construct ( Sylius\Component\Registry\ServiceRegistryInterface $ruleCheckerRegistry, Symfony\Component\Form\FormFactoryInterface $factory, Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository )

보호된 메소드들

메소드 설명
addConfigurationFields ( Symfony\Component\Form\FormInterface $form, $registryIdentifier, array $data = [] )
getConfiguration ( Sylius\Component\Promotion\Model\PromotionRuleInterface $rule ) : array

비공개 메소드들

메소드 설명
createConfigurationField ( string $configuration, array $data ) : Symfony\Component\Form\FormInterface
createConfigurationFieldForChannel ( Sylius\Component\Core\Model\ChannelInterface $channel, string $configuration, array $data ) : Symfony\Component\Form\FormInterface

메소드 상세

__construct() 공개 메소드

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 addConfigurationFields ( Symfony\Component\Form\FormInterface $form, $registryIdentifier, array $data = [] )
$form Symfony\Component\Form\FormInterface
$data array

getConfiguration() 보호된 메소드

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