/** * Execute the command. * * @return void */ public function fire() { $this->config->set('enabled', false); $fetcher = new Fetcher(); $converter = new Converter(base_path() . '/vendor/pragmarx/ua-parser/php/resources/'); $converter->convertString($fetcher->fetch(), false); }
protected function execute(InputInterface $input, OutputInterface $output) { $fetcher = new Fetcher(); $converter = new Converter($this->resourceDirectory); $converter->convertString($fetcher->fetch(), !$input->getOption('no-backup')); }