* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Tests\Descriptor; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Tests\Fixtures\DescriptorApplication1; use Symfony\Component\Console\Tests\Fixtures\DescriptorApplication2; use Symfony\Component\Console\Tests\Fixtures\DescriptorCommand1; use Symfony\Component\Console\Tests\Fixtures\DescriptorCommand2; /** * @author Jean-François Simon */ class ObjectsProvider { public static function getInputArguments() { return array( 'input_argument_1' => new InputArgument('argument_name', InputArgument::REQUIRED), 'input_argument_2' => new InputArgument('argument_name', InputArgument::IS_ARRAY, 'argument description'), 'input_argument_3' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', 'default_value'), 'input_argument_4' => new InputArgument('argument_name', InputArgument::REQUIRED, "multiline\nargument description"), 'input_argument_with_style' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', 'style'), 'input_argument_with_default_inf_value' => new InputArgument('argument_name', InputArgument::OPTIONAL, 'argument description', INF), ); } public static function getInputOptions() { return array( 'input_option_1' => new InputOption('option_name', 'o', InputOption::VALUE_NONE), 'input_option_2' => new InputOption('option_name', 'o', InputOption::VALUE_OPTIONAL, 'option description', 'default_value'), 'input_option_3' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, 'option description'), 'input_option_4' => new InputOption('option_name', 'o', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'option description', array()), 'input_option_5' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, "multiline\noption description"), 'input_option_6' => new InputOption('option_name', array('o', 'O'), InputOption::VALUE_REQUIRED, 'option with multiple shortcuts'), 'input_option_with_style' => new InputOption('option_name', 'o', InputOption::VALUE_REQUIRED, 'option description', 'style'), 'input_option_with_style_array' => new InputOption('option_name', 'o', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'option description', array('Hello', 'world')), 'input_option_with_default_inf_value' => new InputOption('option_name', 'o', InputOption::VALUE_OPTIONAL, 'option description', INF), ); } public static function getInputDefinitions() { return array( 'input_definition_1' => new InputDefinition(), 'input_definition_2' => new InputDefinition(array(new InputArgument('argument_name', InputArgument::REQUIRED))), 'input_definition_3' => new InputDefinition(array(new InputOption('option_name', 'o', InputOption::VALUE_NONE))), 'input_definition_4' => new InputDefinition(array( new InputArgument('argument_name', InputArgument::REQUIRED), new InputOption('option_name', 'o', InputOption::VALUE_NONE), )), ); } public static function getCommands() { return array( 'command_1' => new DescriptorCommand1(), 'command_2' => new DescriptorCommand2(), ); } public static function getApplications() { return array( 'application_1' => new DescriptorApplication1(), 'application_2' => new DescriptorApplication2(), ); } } __halt_compiler();----SIGNATURE:----ieYij9cOjLFlskcVR3L2gXgEozXbz+/nSN5ORnVNPf/cH2t5/K/tYAq6hjsWWoSsVHz0g2kTYKgnbmDfPOaL3UP51N2+MmQQIY7RoUGMGxUCaJcJLaj97luyY7NzmZ7+iTfHRAzgaKhZJxvRa6My04lRSEnGfdvdy4YsL6nB2bH9MZ46ud3ZdIabdQBaOV3SsdnfmaJZTRN2UjpuITJJxcVw+8jhdEj1UF9sfTndiFibRBWp94IH9h0Fe/gwD/Iqcb69bMxpf09WA4u5RSOZQB+T2NTKUjGxvL6rPLMtJ31LfqbwxQ/TEbkNmIC778tWYv3ZB+/90CA62Tojm6L95nxHGQN6G86A8j33y6u77RDnyvcdD92wj10+mwd8/ksUiIdeJ93sp4rVfXgs0SKAv4m2Spm9MrkgQFhpG8yDYNDN6e0BXuf9SAR3IcOzzwZU0Hv9ftmtHpy3/YZB1wCDuAEzDu33fM5ToMs0FTnf/SboGKzrbBs3hDmp5YOYb43KYgqqskyXugseAaVzi8QIYK+/7sgg4nPy+7u23h+yWiA2wKN3Vp/ge1jQHIc5krDqehmQsUyI00UBWSsAN4oDIejZwQkexXvIGirFNaW4EEhgS6ii2iMwwT6IrHyp25MTAb2QE79epi1dawnFr794Of2fFITH6KTMeos1eoVlvY8=----ATTACHMENT:----MTQzODkwMjg5NzAwOTEwMiAzMzM0NTkxMzQ5NzI1NDY4IDg3MDA4MTI5MzQzMzU3MzY=