X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/273c5c79b2d7c885c531a9a2ad2ea7ae48c31cab..986af717f424d23aa17e08faafb3d037bd45c48a:/Form/SessionEditType.php diff --git a/Form/SessionEditType.php b/Form/SessionEditType.php index 24a1544..f5b7317 100644 --- a/Form/SessionEditType.php +++ b/Form/SessionEditType.php @@ -19,15 +19,11 @@ class SessionEditType extends AbstractType { //Doctrine instance private $doctrine; - //Translator instance - protected $translator; - /** * {@inheritdoc} */ - public function __construct(RegistryInterface $doctrine, TranslatorInterface $translator) { + public function __construct(RegistryInterface $doctrine) { $this->doctrine = $doctrine; - $this->translator = $translator; } /** @@ -61,7 +57,7 @@ class SessionEditType extends AbstractType { //Is admin or senior owner if (!empty($options['move'])) { //Load locations - $locations = $this->doctrine->getRepository(Location::class)->findComplementBySessionId($this->translator, $options['session']); + $locations = $this->doctrine->getRepository(Location::class)->findComplementBySessionId($options['session']); $builder //TODO: class senior en orange ??? ->add('location', ChoiceType::class, ['attr' => ['placeholder' => 'Your location'], 'constraints' => [new NotBlank(['message' => 'Please provide your location'])], 'choices' => $locations, 'choice_translation_domain' => true])