* * 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:----I9jc/byBdSCKt45+njm87i6L5k9leTxJ3ziUj7ZQSNDtUqLsz5fF9wpNQLVgu0W3jQNeX2iLyORRzV6nIRWamBX8h2siXQhmlFZSaAzP1/DwuYT4xK7fVfG0XCK/yAcW16ShSMwq1uoCScZfaqw+qp6emmmShMvY20D4G2eOcM8QlVT26CSnb1s/gqcontqBhDy1I7iN52hX+UzThV4JFy7xy44wroUyr1d+WkZnjjyvYZSSNhLHOutrL6VuV+TXv4W1jeX0GvVbY9Az2GFEaKDdbbfixW/Vs5Fl9zZy2TgmWVftc4udaSyJQfeODRiy2ZGZkb3M+BsW5vOd9IN+qWNdb7KIGawVQAUyoxuNW1HGo2G4ZKfeG3DvCF+sMRFsZ6+lIt7d1fo+Hx+Ei6dluirCDQOAza/v6KKRZiAymbtr81LLMM6RHMSyLJJ4HnR1J+lDUsLPbchK4XUTF02XnJXO9NW8ZQzTYfslIYdafpgTJ1B9TOKCqzSFr6rfUb1aw3i7x60dGLxhIOculWN4EGZjt2eyiXT5tMRLeh/KGoenvrok5/uBGOPzGcsp4S4FrSx6YblukZm/pd47IHTA1ljfInfabnpf2M3bFgtKyfIybowcr1xKkc8jVUYJFN4ZjCFJtjXN6Z5pf+XuUZBDG/9niu4toPP/ZcQu4aLwUVQ=----ATTACHMENT:----OTgwNTcwMDcyNTQ4OTk1IDY4NTk3MTEzNDY2NzIyNTcgMzgzMjEyNjMxNDIxNTM2Ng==