PHP Class spec\Sylius\Bundle\AddressingBundle\Form\EventListener\BuildAddressFormSubscriberSpec

Author: Arnaud Langlade ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Show file Open project: sylius/sylius

Public Methods

Method Description
it_adds_province_name_field_on_pre_set_data_if_country_does_not_have_provinces ( Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormInterface $provinceForm, Sylius\Component\Addressing\Model\AddressInterface $address, Sylius\Component\Addressing\Model\CountryInterface $country, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository )
it_adds_province_name_field_on_pre_submit_if_country_does_not_have_provinces ( Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormInterface $provinceForm, Sylius\Component\Addressing\Model\CountryInterface $country, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository )
it_adds_provinces_on_pre_set_data ( Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormInterface $provinceForm, Sylius\Component\Addressing\Model\AddressInterface $address, Sylius\Component\Addressing\Model\CountryInterface $country, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository )
it_adds_provinces_on_pre_submit ( Symfony\Component\Form\FormFactoryInterface $formFactory, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository, Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormInterface $provinceForm, Sylius\Component\Addressing\Model\CountryInterface $country )
it_is_a_subscriber ( )
it_is_initializable ( )
it_subscribes_to_event ( )
let ( Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository, Symfony\Component\Form\FormFactoryInterface $formFactory )

Method Details

it_adds_province_name_field_on_pre_set_data_if_country_does_not_have_provinces() public method

public it_adds_province_name_field_on_pre_set_data_if_country_does_not_have_provinces ( Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormInterface $provinceForm, Sylius\Component\Addressing\Model\AddressInterface $address, Sylius\Component\Addressing\Model\CountryInterface $country, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository )
$formFactory Symfony\Component\Form\FormFactoryInterface
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$provinceForm Symfony\Component\Form\FormInterface
$address Sylius\Component\Addressing\Model\AddressInterface
$country Sylius\Component\Addressing\Model\CountryInterface
$countryRepository Sylius\Component\Resource\Repository\RepositoryInterface

it_adds_province_name_field_on_pre_submit_if_country_does_not_have_provinces() public method

public it_adds_province_name_field_on_pre_submit_if_country_does_not_have_provinces ( Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormInterface $provinceForm, Sylius\Component\Addressing\Model\CountryInterface $country, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository )
$formFactory Symfony\Component\Form\FormFactoryInterface
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$provinceForm Symfony\Component\Form\FormInterface
$country Sylius\Component\Addressing\Model\CountryInterface
$countryRepository Sylius\Component\Resource\Repository\RepositoryInterface

it_adds_provinces_on_pre_set_data() public method

public it_adds_provinces_on_pre_set_data ( Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormInterface $provinceForm, Sylius\Component\Addressing\Model\AddressInterface $address, Sylius\Component\Addressing\Model\CountryInterface $country, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository )
$formFactory Symfony\Component\Form\FormFactoryInterface
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$provinceForm Symfony\Component\Form\FormInterface
$address Sylius\Component\Addressing\Model\AddressInterface
$country Sylius\Component\Addressing\Model\CountryInterface
$countryRepository Sylius\Component\Resource\Repository\RepositoryInterface

it_adds_provinces_on_pre_submit() public method

public it_adds_provinces_on_pre_submit ( Symfony\Component\Form\FormFactoryInterface $formFactory, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository, Symfony\Component\Form\FormEvent $event, Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormInterface $provinceForm, Sylius\Component\Addressing\Model\CountryInterface $country )
$formFactory Symfony\Component\Form\FormFactoryInterface
$countryRepository Sylius\Component\Resource\Repository\RepositoryInterface
$event Symfony\Component\Form\FormEvent
$form Symfony\Component\Form\FormInterface
$provinceForm Symfony\Component\Form\FormInterface
$country Sylius\Component\Addressing\Model\CountryInterface

it_is_a_subscriber() public method

public it_is_a_subscriber ( )

it_is_initializable() public method

public it_is_initializable ( )

it_subscribes_to_event() public method

let() public method

public let ( Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository, Symfony\Component\Form\FormFactoryInterface $formFactory )
$countryRepository Sylius\Component\Resource\Repository\RepositoryInterface
$formFactory Symfony\Component\Form\FormFactoryInterface