for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the thealternativezurich/feedback project.
*
* (c) Florian Moser <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Form\Semester;
use App\Entity\Semester;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class SemesterType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
$builder->add('name', TextType::class);
}
public function configureOptions(OptionsResolver $resolver)
$resolver->setDefaults([
'data_class' => Semester::class,
'translation_domain' => 'entity_semester',
]);