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
/* ==================================================================== */ | |
/* STEPHANE TUFFERY | |
/* MODELISATION PREDICTIVE ET APPRENTISSAGE STATISTIQUE AVEC R | |
/* ==================================================================== */ | |
# --------------------------------------------------------------------------------------------------------- | |
# Installation des packages | |
# --------------------------------------------------------------------------------------------------------- |
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
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; | |
$builder->add('date_debut', null, [ | |
'constraints' => [ | |
new Range(['min' => new \Datetime()) | |
] | |
] | |
); |