Beispiel #1
0
 /**
  * @return string[]
  */
 public function getCurveNames()
 {
     $results = [];
     foreach (Curves::listAll() as $curve) {
         $results[] = [$curve];
     }
     return $results;
 }
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  * @return void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $output->writeln('<comment>Supported Curves</comment>');
     $output->writeln('');
     $output->writeln("The following curves are supported: ");
     foreach (Curves::listAll() as $curve) {
         $output->writeln(sprintf("  <info>%s</info>", $curve));
     }
 }