for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivoaz ContentEditable bundle.
*
* (c) Ivo Azirjans <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Ivoaz\Bundle\ContentEditableBundle\Form\Type;
use Ivoaz\Bundle\ContentEditableBundle\Form\Model\BatchContent;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* @author Ivo Azirjans <[email protected]>
class BatchContentType extends ContentType
{
* {@inheritdoc}
public function buildForm(FormBuilderInterface $builder, array $options)
parent::buildForm($builder, $options);
$builder->add('id');
}
public function configureOptions(OptionsResolver $resolver)
parent::configureOptions($resolver);
$resolver->setDefaults(
[
'data_class' => BatchContent::class,
]
);