PHP Class Sylius\Bundle\ApiBundle\Form\EventSubscriber\AddUserFormSubscriber

Author: Łukasz Chruściel ([email protected])
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Exibir arquivo Open project: sylius/sylius

Public Methods

Method Description
__construct ( string $entryType )
getSubscribedEvents ( ) : array
preSetData ( Symfony\Component\Form\FormEvent $event )
preSubmit ( Symfony\Component\Form\FormEvent $event )

Private Methods

Method Description
isUserDataEmpty ( array $data ) : boolean
removeUserField ( Symfony\Component\Form\FormEvent $event )

Method Details

__construct() public method

public __construct ( string $entryType )
$entryType string

getSubscribedEvents() public static method

public static getSubscribedEvents ( ) : array
return array

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