-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/vaersaagod/geomate
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |