/** * @see Command */ protected function configure() { parent::configure(); $this->getDefinition()->addOption(new InputOption('force', '', InputOption::VALUE_NONE, 'Forces to rebuild from scratch', null)); $this->setName('update')->setDescription('Parses then renders a project')->setHelp(<<<EOF The <info>%command.name%</info> command parses and renders a project: <info>php %command.full_name% update config/symfony.php</info> This command is the same as running the parse command followed by the render command. EOF ); }
/** * @see Command */ protected function configure() { parent::configure(); $this->getDefinition()->addOption(new InputOption('force', '', InputOption::VALUE_NONE, 'Forces to rebuild from scratch', null)); $this->setName('render')->setDescription('Renders a project')->setHelp(<<<EOF The <info>%command.name%</info> command renders a project as a static set of HTML files: <info>php %command.full_name% render config/symfony.php</info> The <comment>--force</comment> option forces a rebuild (it disables the incremental rendering algorithm): <info>php %command.full_name% render config/symfony.php --force</info> The <comment>--version</comment> option overrides the version specified in the configuration: <info>php %command.full_name% render config/symfony.php --version=master</info> EOF ); }
/** * @see Command */ protected function configure() { parent::configure(); $this->getDefinition()->addOption(new InputOption('force', '', InputOption::VALUE_NONE, 'Forces to rebuild from scratch', null)); $this->setName('parse')->setDescription('Parses a project')->setHelp(<<<EOF The <info>%command.name%</info> command parses a project and generates a database with API information: <info>php %command.full_name% parse config/symfony.php</info> The <comment>--force</comment> option forces a rebuild (it disables the incremental parsing algorithm): <info>php %command.full_name% parse config/symfony.php --force</info> The <comment>--version</comment> option overrides the version specified in the configuration: <info>php %command.full_name% parse config/symfony.php --version=master</info> EOF ); }