PHP Class spec\Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactorySpec

Author: Paweł Jędrzejewski ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Mostra file Open project: sylius/sylius

Public Methods

Method Description
it_creates_appropriate_form_based_on_configuration ( RequestConfiguration $requestConfiguration, Sylius\Component\Resource\Model\ResourceInterface $resource, Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormInterface $form )
it_creates_form_without_root_name_and_disables_csrf_protection_for_non_html_requests ( RequestConfiguration $requestConfiguration, Sylius\Component\Resource\Model\ResourceInterface $resource, Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormInterface $form )
it_implements_resource_form_factory_interface ( )
it_is_initializable ( )
let ( Symfony\Component\Form\FormFactoryInterface $formFactory )

Method Details

it_creates_appropriate_form_based_on_configuration() public method

public it_creates_appropriate_form_based_on_configuration ( RequestConfiguration $requestConfiguration, Sylius\Component\Resource\Model\ResourceInterface $resource, Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormInterface $form )
$requestConfiguration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$resource Sylius\Component\Resource\Model\ResourceInterface
$formFactory Symfony\Component\Form\FormFactoryInterface
$form Symfony\Component\Form\FormInterface

it_creates_form_without_root_name_and_disables_csrf_protection_for_non_html_requests() public method

public it_creates_form_without_root_name_and_disables_csrf_protection_for_non_html_requests ( RequestConfiguration $requestConfiguration, Sylius\Component\Resource\Model\ResourceInterface $resource, Symfony\Component\Form\FormFactoryInterface $formFactory, Symfony\Component\Form\FormInterface $form )
$requestConfiguration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
$resource Sylius\Component\Resource\Model\ResourceInterface
$formFactory Symfony\Component\Form\FormFactoryInterface
$form Symfony\Component\Form\FormInterface

it_implements_resource_form_factory_interface() public method

it_is_initializable() public method

public it_is_initializable ( )

let() public method

public let ( Symfony\Component\Form\FormFactoryInterface $formFactory )
$formFactory Symfony\Component\Form\FormFactoryInterface