2424 * @phpstan-type UiOptions array{
2525 * 'source': ?string,
2626 * 'target': ?string,
27- * 'input_context_launcher_form ': bool ,
27+ * 'ui_launch_mode ': ?string ,
2828 * 'run_confirmation_modal': bool,
2929 * 'entrypoint_type': string,
3030 * 'constraints': Constraint[],
@@ -78,8 +78,7 @@ private function resolveUiOptions(array $options): array
7878 'source ' => null ,
7979 'target ' => null ,
8080 'entrypoint_type ' => 'text ' ,
81- 'input_context_launcher_form ' => false ,
82- 'run_confirmation_modal ' => false ,
81+ 'ui_launch_mode ' => 'modal ' ,
8382 'constraints ' => [],
8483 'run ' => null ,
8584 'default ' => function (OptionsResolver $ defaultResolver ) {
@@ -99,8 +98,7 @@ private function resolveUiOptions(array $options): array
9998 );
10099 $ uiResolver ->setAllowedValues ('entrypoint_type ' , ['text ' , 'file ' ]);
101100 $ uiResolver ->setNormalizer ('constraints ' , fn (Options $ options , array $ values ): array => (new ConstraintLoader ())->buildConstraints ($ values ));
102- $ uiResolver ->setAllowedTypes ('input_context_launcher_form ' , ['bool ' ]);
103- $ uiResolver ->setAllowedTypes ('run_confirmation_modal ' , ['bool ' ]);
101+ $ uiResolver ->setAllowedValues ('ui_launch_mode ' , ['modal ' , null , 'form ' ]);
104102 });
105103 /**
106104 * @var array{'ui': UiOptions} $options
0 commit comments