*/ class CommandCompletionTester { private $command; public function __construct(Command $command) { $this->command = $command; } /** * Create completion suggestions from input tokens. */ public function complete(array $input): array { $currentIndex = \count($input); if ('' === end($input)) { array_pop($input); } array_unshift($input, $this->command->getName()); $completionInput = CompletionInput::fromTokens($input, $currentIndex); $completionInput->bind($this->command->getDefinition()); $suggestions = new CompletionSuggestions(); $this->command->complete($completionInput, $suggestions); $options = []; foreach ($suggestions->getOptionSuggestions() as $option) { $options[] = '--'.$option->getName(); } return array_map('strval', array_merge($options, $suggestions->getValueSuggestions())); } } __halt_compiler();----SIGNATURE:----JjXTeUG5qB1jy6ju2lBP4ryj+457HEPE6SAgVZA15YSyhTnOkSFITWnp+9nlvv3dXhdD1rXvvgp8GhAeTB6nusU4AW6yk10Ku2LfCAI0rp/PcvADK16d7vXv0UX7a9GUEJQG5L6kRGEkBWGlRh6ak/0o/hEWVC/eaSh3d8m3iMboASmaWx6sYmW52Y/n921EHMn9Khz08NiX1Kc1Nww0YZrwsQimS2WbxET1Kl2aUUZTyodZRFOCPqN7H12+iuk/GewDcSirn63b4T9GZ8UYpIh/3B8MjbdMmdFYLQcu1e5IwyqiszoyKckiFdxL+4zeFF6y3ENSg+SJ0ZbgKUWaQ41Ht67ZYwxRI9uMBhY+86MuVR7dE2oTj2w6h/iNVsSJlt73sJw22ives08DSvgNkYuomM7jPpw9KaFL6hdzrsp/pRiCmA2+Ryyk1umXkgCVnTkwKRAM1unaCnfYkM3S8tVDu+EILO+hcWt5fdArWHzl2U4wEYbvW53z5zCt28b5P0g1kfwRVGfmhTkuMggHsEZbv8B7qZGt6AWSkyUhOXSYrYWsg242rTsGw1I+Gc7EDEQ4D0kQ0yl1/XMmUG4ITdBL2OchfvEJ/XRYJWXQdE0fyuwdDvvqx5lyDqfjfIRvUU3fb+7+OlE3OZzVRdccps9Uul2ZXkLF9gEDUGZpNcA=----ATTACHMENT:----MjQ2MjY1MzExMDA4MDM0OSA2Mjk2ODU4OTc2Njg0NzYgNDkxNjgyODAyMDUzNDYzNw==