FormBuilderInterface.php 1016 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\BaseApplicationBundle\Builder;
  11. use Sonata\BaseApplicationBundle\Admin\FieldDescription;
  12. use Sonata\BaseApplicationBundle\Admin\Admin;
  13. use Symfony\Component\Form\Form;
  14. use Symfony\Component\Form\FormContextInterface;
  15. use Symfony\Component\Validator\ValidatorInterface;
  16. use Symfony\Component\Form\FieldFactory\FieldFactoryInterface;
  17. interface FormBuilderInterface
  18. {
  19. function __construct(FieldFactoryInterface $fieldFactory, FormContextInterface $formContext, ValidatorInterface $validator);
  20. function addField(Form $form, FieldDescription $fieldDescription);
  21. function fixFieldDescription(Admin $admin, FieldDescription $fieldDescription, array $options = array());
  22. function getBaseForm($name, $object, array $options = array());
  23. }