Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/vaersaagod/geomate
Browse files Browse the repository at this point in the history
  • Loading branch information
aelvan committed Mar 3, 2021
2 parents aac42c1 + b75da13 commit c897eee
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/console/controllers/DatabaseController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/**
* GeoMate plugin for Craft CMS 3.x
*
* Look up visitors location data based on their IP and easily redirect them to the correct site.
*
* @link https://www.vaersaagod.no
* @copyright Copyright (c) 2018 Værsågod
*/

namespace vaersaagod\geomate\console\controllers;

use Craft;
use craft\console\Controller;
use yii\console\ExitCode;
use vaersaagod\geomate\GeoMate;

/**
* @author Værsågod
* @package GeoMate
*/
class DatabaseController extends Controller
{
public function actionUpdateDatabase()
{
$this->stdout("Updating databases...\n");

GeoMate::$plugin->database->updateDatabase();
return ExitCode::OK;
}
}

0 comments on commit c897eee

Please sign in to comment.