| @@ 40-58 (lines=19) @@ | ||
| 37 | parent::__construct(); |
|
| 38 | } |
|
| 39 | ||
| 40 | protected function configure() : void |
|
| 41 | { |
|
| 42 | $this |
|
| 43 | ->setName('browscap:convert') |
|
| 44 | ->setDescription('Converts an existing browscap.ini file to a cache.php file.') |
|
| 45 | ->addArgument( |
|
| 46 | 'file', |
|
| 47 | InputArgument::OPTIONAL, |
|
| 48 | 'Path to the browscap.ini file', |
|
| 49 | $this->defaultIniFile |
|
| 50 | ) |
|
| 51 | ->addOption( |
|
| 52 | 'cache', |
|
| 53 | 'c', |
|
| 54 | InputOption::VALUE_OPTIONAL, |
|
| 55 | 'Where the cache files are located', |
|
| 56 | $this->defaultCacheFolder |
|
| 57 | ); |
|
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * @param \Symfony\Component\Console\Input\InputInterface $input |
|
| @@ 35-53 (lines=19) @@ | ||
| 32 | parent::__construct(); |
|
| 33 | } |
|
| 34 | ||
| 35 | protected function configure() : void |
|
| 36 | { |
|
| 37 | $this |
|
| 38 | ->setName('browscap:parse') |
|
| 39 | ->setDescription('Parses a user agent string and dumps the results.') |
|
| 40 | ->addArgument( |
|
| 41 | 'user-agent', |
|
| 42 | InputArgument::REQUIRED, |
|
| 43 | 'User agent string to analyze', |
|
| 44 | null |
|
| 45 | ) |
|
| 46 | ->addOption( |
|
| 47 | 'cache', |
|
| 48 | 'c', |
|
| 49 | InputOption::VALUE_OPTIONAL, |
|
| 50 | 'Where the cache files are located', |
|
| 51 | $this->defaultCacheFolder |
|
| 52 | ); |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @param \Symfony\Component\Console\Input\InputInterface $input |
|