This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/Form/Fixtures/RequiredOptionsField.php
Jordi Boggiano 0bdb271608 [Form] Added parent calls to all configure() methods of Fields and Transformers
The calls that were on top of the function have also been moved to the bottom for safety (see previous commit)
2010-11-16 07:28:12 +01:00

20 lines
356 B
PHP

<?php
namespace Symfony\Tests\Component\Form\Fixtures;
use Symfony\Component\Form\Field;
class RequiredOptionsField extends Field
{
protected function configure()
{
$this->addOption('foo');
$this->addRequiredOption('bar');
parent::configure();
}
public function render(array $attributes = array())
{
}
}