the browser-facing portion of osu!
at master 672 B view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6namespace App\Console\Commands; 7 8use App\Libraries\Ip2AsnUpdater; 9use Illuminate\Console\Command; 10 11class Ip2AsnUpdate extends Command 12{ 13 protected $signature = 'ip2asn:update'; 14 protected $description = 'Update or initialise ip2asn database'; 15 16 public function handle() 17 { 18 $this->info('Updating ip2asn database'); 19 (new Ip2AsnUpdater())->run(function (string $message): void { 20 $this->info($message); 21 }); 22 $this->info('Done'); 23 } 24}