__construct() public method

public __construct ( $name, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, array $types = [], array $clientTransformers = [], array $normTransformers = [], Symfony\Component\Form\DataMapperInterface $dataMapper = null, array $validators = [], $required = false, $readOnly = false, $errorBubbling = false, $emptyData = null, array $attributes = [] )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$types array
$clientTransformers array
$normTransformers array
$dataMapper Symfony\Component\Form\DataMapperInterface
$validators array
$attributes array
 /**
  * {@inheritDoc}
  */
 public function __construct($key, array $options = array())
 {
     // Override parent option
     // \DateTime objects are never edited by reference, because
     // we treat them like value objects
     $this->addOption('by_reference', false);
     parent::__construct($key, $options);
 }
Example #2
0
 public function __construct($title, array $options)
 {
     $this->addOption('theme');
     $this->addOption('topic_class');
     $this->addOption('category_repository');
     $this->addOption('post_form');
     parent::__construct($title, $options);
 }
 public function __construct($key, array $options = array())
 {
     // This doesn't work with addOption(), because the value of this option
     // needs to be accessed before Configurable::__construct() is reached
     // Setting all options in the constructor of the root field
     // is conceptually flawed
     if (isset($options['prototype'])) {
         $this->prototype = $options['prototype'];
         unset($options['prototype']);
     }
     parent::__construct($key, $options);
 }
Example #4
0
 public function __construct($testCase, $name, $object, $validator)
 {
     $this->testCase = $testCase;
     $this->object = $object;
     parent::__construct($name, $object, $validator);
 }
Example #5
0
 /**
  * Constructor.
  *
  * @param string $name
  * @param array|object $data
  * @param ValidatorInterface $validator
  * @param array $options
  */
 public function __construct($name, array $options = array())
 {
     $this->addOption('theme');
     parent::__construct($name, $options);
 }
Example #6
0
 public function __construct($title, array $options = array())
 {
     $this->addOption('theme');
     $this->addOption('post_class');
     parent::__construct($title, $options);
 }
Example #7
0
    /**
     * Constructor.
     *
     * @param string $name
     * @param array|object $data
     * @param ValidatorInterface $validator
     * @param array $options
     */
    public function __construct($name, $data, ValidatorInterface $validator, array $options = array())
    {
        $this->addOption('theme');

        parent::__construct($name, $data, $validator, $options);
    }