Joli\Jane\Command\GenerateCommand::configure PHP Method

configure() public method

public configure ( )
    public function configure()
    {
        $this->setName('generate');
        $this->setDescription('Generate a set of class and normalizers given a specific Json Schema file');
        $this->addOption('config-file', 'c', InputOption::VALUE_OPTIONAL, 'File to use for jane configuration', '.jane');
        $this->addOption('no-reference', null, InputOption::VALUE_NONE, 'Don\'t use the reference system in your generated schema');
        $this->addOption('date-format', 'd', InputOption::VALUE_OPTIONAL, 'Date time format to use for date time field');
        $this->addArgument('json-schema-file', InputArgument::OPTIONAL, 'Location of the Json Schema file');
        $this->addArgument('root-class', InputArgument::OPTIONAL, 'Name of the root entity you want to generate');
        $this->addArgument('namespace', InputArgument::OPTIONAL, 'Namespace prefix to use for generated files');
        $this->addArgument('directory', InputArgument::OPTIONAL, 'Directory where to generate files');
    }