Exceptions
Exception
Symfony\Component\Validator\Exception\ InvalidArgumentException
in
vendor/symfony/validator/Constraints/NotBlank.php
(line 44)
* @param string[]|null $groups*/public function __construct(?array $options = null, ?string $message = null, ?bool $allowNull = null, ?callable $normalizer = null, ?array $groups = null, mixed $payload = null){if (null !== $options) {throw new InvalidArgumentException(\sprintf('Passing an array of options to configure the "%s" constraint is no longer supported.', static::class));}parent::__construct(null, $groups, $payload);$this->message = $message ?? $this->message;
NotBlank->__construct(array('message' => 'Entrez votre nom d\'utilisateur'))
in
src/Form/ResetPasswordRequestFormType.php
(line 24)
'attr' => ['class' => 'form-control form-control-lg form-control-alt','placeholder' => 'Votre nom d\'utilisateur',],'constraints' => [new NotBlank(['message' => 'Entrez votre nom d\'utilisateur',]),],]);
in
vendor/symfony/form/ResolvedFormType.php
->
buildForm
(line 100)
public function buildForm(FormBuilderInterface $builder, array $options): void{$this->parent?->buildForm($builder, $options);$this->innerType->buildForm($builder, $options);foreach ($this->typeExtensions as $extension) {$extension->buildForm($builder, $options);}}
in
vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php
->
buildForm
(line 73)
return $this->proxiedType->createView($form, $parent);}public function buildForm(FormBuilderInterface $builder, array $options): void{$this->proxiedType->buildForm($builder, $options);}public function buildView(FormView $view, FormInterface $form, array $options): void{$this->proxiedType->buildView($view, $form, $options);
in
vendor/symfony/form/FormFactory.php
->
buildForm
(line 75)
$builder->setInitialOptions($options);}// Explicitly call buildForm() in order to be able to override either// createBuilder() or buildForm() in the resolved form type$type->buildForm($builder, $builder->getOptions());return $builder;}public function createBuilderForProperty(string $class, string $property, mixed $data = null, array $options = []): FormBuilderInterface
in
vendor/symfony/form/FormFactory.php
->
createNamedBuilder
(line 53)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowBuilderInterface : FormBuilderInterface)*/public function createBuilder(string $type = FormType::class, mixed $data = null, array $options = []): FormBuilderInterface{return $this->createNamedBuilder($this->registry->getType($type)->getBlockPrefix(), $type, $data, $options);}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowBuilderInterface : FormBuilderInterface)*/
in
vendor/symfony/form/FormFactory.php
->
createBuilder
(line 32)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface{return $this->createBuilder($type, $data, $options)->getForm();}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
create
(line 354)
** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface{return $this->container->get('form.factory')->create($type, $data, $options);}/*** Creates and returns a form builder instance.*/
AbstractController->createForm('App\\Form\\ResetPasswordRequestFormType')
in
src/Controller/ResetPasswordController.php
(line 39)
* Display & process form to request a password reset.*/#[Route(path: '', name: 'app_forgot_password_request')]public function request(Request $request, MailerInterface $mailer): Response{$form = $this->createForm(ResetPasswordRequestFormType::class);$form->handleRequest($request);if ($form->isSubmitted() && $form->isValid()) {return $this->processSendingPasswordResetUsername($form->get('username')->getData(),
in
vendor/symfony/http-kernel/HttpKernel.php
->
request
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 191)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
Request::setTrustedHosts([$trustedHosts]);}$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 07:07:50 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "0bf552"
},
"request_uri": "https://itrsp.giobtrans.ch/_profiler/0bf552",
"method": "GET"
}
|
Stack Trace
|
InvalidArgumentException
|
|---|
Symfony\Component\Validator\Exception\InvalidArgumentException:
Passing an array of options to configure the "Symfony\Component\Validator\Constraints\NotBlank" constraint is no longer supported.
at vendor/symfony/validator/Constraints/NotBlank.php:44
at Symfony\Component\Validator\Constraints\NotBlank->__construct(array('message' => 'Entrez votre nom d\'utilisateur'))
(src/Form/ResetPasswordRequestFormType.php:24)
at App\Form\ResetPasswordRequestFormType->buildForm(object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'label_translation_parameters' => array(), 'attr_translation_parameters' => array(), 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'inherit_data' => false, 'compound' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'allow_file_upload' => false, 'help_translation_parameters' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'error_mapping' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'block_prefix' => null, 'row_attr' => array(), 'label_html' => false, 'attr' => array(), 'priority' => 0, 'form_attr' => false, 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'action' => '', 'upload_max_size_message' => object(Closure), 'help' => null, 'help_attr' => array(), 'help_html' => false, 'is_empty_callback' => null, 'getter' => null, 'setter' => null, 'validation_groups' => null, 'constraints' => array(), 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_token_manager' => object(SameOriginCsrfTokenManager), 'csrf_token_id' => null))
(vendor/symfony/form/ResolvedFormType.php:100)
at Symfony\Component\Form\ResolvedFormType->buildForm(object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'label_translation_parameters' => array(), 'attr_translation_parameters' => array(), 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'inherit_data' => false, 'compound' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'allow_file_upload' => false, 'help_translation_parameters' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'error_mapping' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'block_prefix' => null, 'row_attr' => array(), 'label_html' => false, 'attr' => array(), 'priority' => 0, 'form_attr' => false, 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'action' => '', 'upload_max_size_message' => object(Closure), 'help' => null, 'help_attr' => array(), 'help_html' => false, 'is_empty_callback' => null, 'getter' => null, 'setter' => null, 'validation_groups' => null, 'constraints' => array(), 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_token_manager' => object(SameOriginCsrfTokenManager), 'csrf_token_id' => null))
(vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:73)
at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildForm(object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'label_translation_parameters' => array(), 'attr_translation_parameters' => array(), 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'inherit_data' => false, 'compound' => true, 'method' => 'POST', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'allow_file_upload' => false, 'help_translation_parameters' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'error_mapping' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'block_prefix' => null, 'row_attr' => array(), 'label_html' => false, 'attr' => array(), 'priority' => 0, 'form_attr' => false, 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'action' => '', 'upload_max_size_message' => object(Closure), 'help' => null, 'help_attr' => array(), 'help_html' => false, 'is_empty_callback' => null, 'getter' => null, 'setter' => null, 'validation_groups' => null, 'constraints' => array(), 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_token_manager' => object(SameOriginCsrfTokenManager), 'csrf_token_id' => null))
(vendor/symfony/form/FormFactory.php:75)
at Symfony\Component\Form\FormFactory->createNamedBuilder('reset_password_request_form', object(ResolvedTypeDataCollectorProxy), null, array())
(vendor/symfony/form/FormFactory.php:53)
at Symfony\Component\Form\FormFactory->createBuilder('App\\Form\\ResetPasswordRequestFormType', null, array())
(vendor/symfony/form/FormFactory.php:32)
at Symfony\Component\Form\FormFactory->create('App\\Form\\ResetPasswordRequestFormType', null, array())
(vendor/symfony/framework-bundle/Controller/AbstractController.php:354)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createForm('App\\Form\\ResetPasswordRequestFormType')
(src/Controller/ResetPasswordController.php:39)
at App\Controller\ResetPasswordController->request(object(Request), object(Mailer))
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:191)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(public/index.php:28)
|