This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace GaylordP\FormFontAwesomeBundle\Form; | |
use Symfony\Component\Form\AbstractTypeExtension; | |
use Symfony\Component\Form\Extension\Core\Type\FormType; | |
use Symfony\Component\Form\FormInterface; | |
use Symfony\Component\Form\FormView; | |
use Symfony\Component\OptionsResolver\OptionsResolver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function delete(Request $request, UserInterface $user, Color $color): Response | |
{ | |
if (!$this->isCsrfTokenValid('delete', $request->request->get('token'))) { | |
return $this->render('administration/color/delete.html.twig', [ | |
'color' => $color, | |
]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PersonneVersionType extends AbstractType | |
{ | |
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ | |
$builder | |
->add('emails', CollectionType::class, [ | |
'entry_type' => PersonneVersionEmailType::class, | |
'label' => false, | |
'allow_add' => true, | |
'allow_delete' => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Formulaire : | |
->add('mediaPath', FineUploaderTypeExtension::class, [ | |
'label' => 'XXXXXXXXXXX', | |
'mapped' => false, | |
]) | |
## Service : | |
AppBundle\Form\Extension\FineUploaderTypeExtension: | |
public: false |