This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/scripts/cron-globals

11 lines
291 B
PHP
Executable file

#!/usr/bin/php
<?php
require_once(__DIR__
. DIRECTORY_SEPARATOR . '..'
. DIRECTORY_SEPARATOR . 'src'
. DIRECTORY_SEPARATOR . 'Bootstrap.php');
use \Szurubooru\Services\PostService;
$postService = Szurubooru\Injector::get(PostService::class);
$postService->updatePostGlobals();