コード例 #1
0
 /**
  *
  */
 protected function configure()
 {
     parent::configure();
     if (!self::$files) {
         self::$files = realpath(__DIR__ . '/../../../../bin/.files');
     }
     $this->setName('site:create')->setDescription('Create a Joomla site')->addOption('joomla', null, InputOption::VALUE_REQUIRED, "Joomla version. Can be a release number (2, 3.2, ..) or branch name. Run `joomla versions` for a full list.\nUse \"none\" for an empty virtual host.", 'latest')->addOption('sample-data', null, InputOption::VALUE_REQUIRED, 'Sample data to install (default|blog|brochure|learn|testing)')->addOption('symlink', null, InputOption::VALUE_REQUIRED, 'A comma separated list of folders to symlink from projects folder')->addOption('clear-cache', null, InputOption::VALUE_NONE, 'Update the list of available tags and branches from the Joomla repository')->addOption('projects-dir', null, InputOption::VALUE_REQUIRED, 'Directory where your custom projects reside', sprintf('%s/Projects', trim(`echo ~`)))->addOption('dbname', null, InputOption::VALUE_OPTIONAL, 'User specified database where joomla will be installed', $this->target_db)->addOption('dbprefix', null, InputOption::VALUE_OPTIONAL, 'User specified prefix for the Joomla database tables', 'j');
 }
コード例 #2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('site:token')->setDescription('Generate a login token for a user name to be used for JWT authentication')->setHelp('Add the token to your query string such as ?auth_token=TOKEN and the given user will be automatically logged in')->addArgument('username', InputArgument::REQUIRED, 'User name to generate the token for');
 }
コード例 #3
0
 protected function configure()
 {
     parent::configure();
     $this->setName('site:delete')->setDescription('Delete a site');
 }
コード例 #4
0
 protected function configure()
 {
     parent::configure();
     $this->setName('extension:symlink')->setDescription('Symlink projects into a site')->addArgument('symlink', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'A list of folders to symlink from projects folder')->addOption('projects-dir', null, InputOption::VALUE_REQUIRED, 'Directory where your custom projects reside', sprintf('%s/Projects', trim(`echo ~`)));
 }
コード例 #5
0
 protected function configure()
 {
     parent::configure();
     $this->setName('extension:installfile')->setDescription('Install packaged extensions for file or directory into a site')->addArgument('extension', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'A list of full paths to extension packages (file or directory) to install');
 }
コード例 #6
0
 protected function configure()
 {
     parent::configure();
     $this->setName('extension:install')->setDescription('Install extensions into a site')->addArgument('extension', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'A list of extensions to install to the site using discover install');
 }