File tree Expand file tree Collapse file tree 5 files changed +16
-16
lines changed
Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 3434class BoltFormsEvent extends FormEvent
3535{
3636 public function __construct (
37- protected FormEvent $ event ,
38- protected string $ formsEventName
37+ protected readonly FormEvent $ event ,
38+ protected readonly string $ formsEventName
3939 ) {
4040 parent ::__construct ($ event ->getForm (), $ event ->getData ());
4141 }
Original file line number Diff line number Diff line change 1616use Symfony \Component \Form \FormInterface ;
1717use Symfony \Component \HttpFoundation \File \UploadedFile ;
1818
19- class FileUploadHandler implements EventSubscriberInterface
19+ readonly class FileUploadHandler implements EventSubscriberInterface
2020{
2121 public function __construct (
22- private readonly FormHelper $ helper ,
23- private readonly string $ projectDir = '' ,
22+ private FormHelper $ helper ,
23+ private string $ projectDir = '' ,
2424 ) {
2525 }
2626
Original file line number Diff line number Diff line change 99use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
1010use Symfony \Component \Form \FormError ;
1111
12- class HoneypotSubscriber implements EventSubscriberInterface
12+ readonly class HoneypotSubscriber implements EventSubscriberInterface
1313{
1414 public function handleEvent (PostSubmitEvent $ event ): PostSubmitEvent
1515 {
Original file line number Diff line number Diff line change 3535 * @license http://opensource.org/licenses/GPL-3.0 GNU Public License 3.0
3636 * @license http://opensource.org/licenses/LGPL-3.0 GNU Lesser General Public License 3.0
3737 */
38- class SymfonyFormProxySubscriber implements EventSubscriberInterface
38+ readonly class SymfonyFormProxySubscriber implements EventSubscriberInterface
3939{
4040 public function __construct (
41- private readonly EventDispatcherInterface $ boltFormsDispatcher
41+ private EventDispatcherInterface $ boltFormsDispatcher
4242 ) {
4343 }
4444
Original file line number Diff line number Diff line change 1212use Twig \Environment ;
1313use Twig \Extension \RuntimeExtensionInterface ;
1414
15- class FormRuntime implements RuntimeExtensionInterface
15+ readonly class FormRuntime implements RuntimeExtensionInterface
1616{
1717 public function __construct (
18- private readonly Notifications $ notifications ,
19- private readonly Environment $ twig ,
20- private readonly FormBuilder $ builder ,
21- private readonly RequestStack $ requestStack ,
22- private readonly EventDispatcherInterface $ dispatcher ,
23- private readonly BoltFormsConfig $ config ,
24- private readonly PostSubmitEventDispatcher $ postSubmitEventDispatcher
18+ private Notifications $ notifications ,
19+ private Environment $ twig ,
20+ private FormBuilder $ builder ,
21+ private RequestStack $ requestStack ,
22+ private EventDispatcherInterface $ dispatcher ,
23+ private BoltFormsConfig $ config ,
24+ private PostSubmitEventDispatcher $ postSubmitEventDispatcher
2525 ) {
2626 }
2727
You can’t perform that action at this time.
0 commit comments