agence-adeliom / easy-media-bundle

A Symfony Media manager bundle for EasyAdmin
MIT License
27 stars 17 forks source link

BadRequestException when using fosckeditor integration with symfony 6.x #22

Closed ArthurPaille closed 1 year ago

ArthurPaille commented 1 year ago

When using fosckeditor integration with symfony 6.x, the 'restrict' config cause a BadRequestException when the value is an array.

Symfony\Component\HttpFoundation\Exception\BadRequestException:
Input value "restrict" contains a non-scalar value.

The $request->query->get('restrict') doesn't accept array type as it was deprecated in 5.x and removed in 6.0. $request->query->all('restrict') should be used instead.

See : https://github.com/symfony/symfony/pull/41766#issuecomment-865083005