Skip to content

Releases: hostnet/form-handler-component

1.7.4 Support Symfony 7

30 Apr 08:39
51b867b
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.7.3...1.7.4

Add support for Symfony 6

21 Sep 09:13
56174e5
Compare
Choose a tag to compare
Merge pull request #37 from hostnet/fix-tests

Fix failing unit tests

Update phpcs-tool to 9.1.0 with Hostnet-Level-1

04 May 12:02
4a13ff9
Compare
Choose a tag to compare
  • Updates phpcs-tool to 9.1.0 with Hostnet-Level-1

php 8 support

12 Jul 12:15
Compare
Choose a tag to compare
1.7.1

added php 8 support

Symfony 5 support

06 Mar 19:10
e8e7a78
Compare
Choose a tag to compare

This release includes

  • #29 Symfony 5

special thanks to @GawainLynch for contributing

End of EOL php and symfony versions

31 Dec 10:03
6c00fdc
Compare
Choose a tag to compare
  • Remove eol support, and upgrade most packages #30

Prevent leaking sensitive request data from array callables

11 Apr 13:24
Compare
Choose a tag to compare
Don't expose request stacktrace in call_user_func

When call_user_func runs a callable that throws an exception, the
exception stacktrace will contain the request object. When a logger
parses the array of functions, it might cause this processor/formatter
to call the `__toString()` function on the Request object, which will
then contain all request information, which includes passwords when
sent as post body.

See: Seldaek/monolog#1138

Support for sf4

03 Nov 14:59
Compare
Choose a tag to compare

This patch as supports for Symfony 4.0.

Fixes a BC break regarding 2.x form types

16 Oct 10:21
Compare
Choose a tag to compare

After #19 it was no longer possible to use form types that were not a FQCN, this broke support for Symfony 2.x. This release fixes this particular bug.

Added setFormSubmitProcessor to the HandlerConfigInterface

12 Oct 07:40
Compare
Choose a tag to compare

Added a way to apply a custom form submit processor to the handler if you require more fine-grained way to handle your form.

By default the ::handleRequest() is used, but if you need want to do something differently you can do that as follows:

public function configure(HandlerConfigInterface $config)
{
    $config->setFormSubmitProcessor(function (FormInterface $form, Request $request) {
        // taken from the Symfony docs example
        $form->submit($request->request->get($form->getName()));
    });
}

Example it take from the symfony docs: https://symfony.com/doc/current/form/direct_submit.html