first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Dotenv\Dotenv;
|
||||
use App\Services\Google\GoogleImportService;
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
require_once __DIR__ . '/../app/Helpers/format.php';
|
||||
|
||||
$dotenv = Dotenv::createImmutable(dirname(__DIR__));
|
||||
$dotenv->safeLoad();
|
||||
date_default_timezone_set($_ENV['APP_TIMEZONE'] ?? 'Europe/Samara');
|
||||
$service = new GoogleImportService();
|
||||
$result = $service->import();
|
||||
|
||||
echo '[' . date('Y-m-d H:i:s') . '] ';
|
||||
echo 'created=' . $result['created'] . ', ';
|
||||
echo 'updated=' . $result['updated'] . ', ';
|
||||
echo 'skipped=' . $result['skipped'] . ', ';
|
||||
echo 'total=' . $result['total'] . PHP_EOL;
|
||||
Reference in New Issue
Block a user