mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 22:48:18 +00:00
Final things.
This commit is contained in:
@@ -22,26 +22,19 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Http\Controllers\System;
|
||||
|
||||
use FireflyIII\Support\Http\Controllers\CronRunner;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class CronController
|
||||
*/
|
||||
class CronController
|
||||
{
|
||||
use CronRunner;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function cron(): string
|
||||
public function cron()
|
||||
{
|
||||
$results = [];
|
||||
$results[] = $this->runRecurring();
|
||||
$results[] = $this->runAutoBudget();
|
||||
$results[] = $this->runTelemetry();
|
||||
|
||||
return implode("<br>\n", $results);
|
||||
Log::error('The cron endpoint has moved to GET /api/v1/cron/[token]');
|
||||
return response('The cron endpoint has moved to GET /api/v1/cron/[token]', 500);
|
||||
}
|
||||
}
|
||||
|
@@ -133,16 +133,16 @@ class InstallController extends Controller
|
||||
*/
|
||||
public function keys(): void
|
||||
{
|
||||
// switch on PHP version.
|
||||
// switch on PHP version.
|
||||
if (7 === PHP_MAJOR_VERSION) {
|
||||
$rsa = new \phpseclib\Crypt\RSA;
|
||||
$keys = $rsa->createKey(4096);
|
||||
}
|
||||
if (8 === PHP_MAJOR_VERSION) {
|
||||
$keys = \phpseclib3\Crypt\RSA::createKeys(4096);
|
||||
$keys = \phpseclib3\Crypt\RSA::createKey(4096);
|
||||
}
|
||||
|
||||
|
||||
[$publicKey, $privateKey] = [
|
||||
Passport::keyPath('oauth-public.key'),
|
||||
Passport::keyPath('oauth-private.key'),
|
||||
|
Reference in New Issue
Block a user