Update Composer deps, switch to Docker image for CA cert updates.

This commit is contained in:
Buster "Silver Eagle" Neece 2019-10-24 23:46:05 -05:00
parent ae017c14a9
commit cd72560032
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
3 changed files with 135 additions and 264 deletions

352
composer.lock generated
View File

@ -8,16 +8,16 @@
"packages": [
{
"name": "aws/aws-sdk-php",
"version": "3.112.20",
"version": "3.112.28",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
"reference": "c84de8adf2b014124b0058013805caf2ae384137"
"reference": "dabae6df3fd53b470da8806d641d05dbb66859da"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/c84de8adf2b014124b0058013805caf2ae384137",
"reference": "c84de8adf2b014124b0058013805caf2ae384137",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/dabae6df3fd53b470da8806d641d05dbb66859da",
"reference": "dabae6df3fd53b470da8806d641d05dbb66859da",
"shasum": ""
},
"require": {
@ -87,7 +87,7 @@
"s3",
"sdk"
],
"time": "2019-10-11T18:14:55+00:00"
"time": "2019-10-24T18:14:24+00:00"
},
{
"name": "azuracast/azuracore",
@ -95,12 +95,12 @@
"source": {
"type": "git",
"url": "https://github.com/AzuraCast/azuracore.git",
"reference": "1df17da4255ab4bf7474c82e478063a83bacf6fb"
"reference": "ebe0d996f06874a52eac2ce5968f170aa56676ac"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/AzuraCast/azuracore/zipball/1df17da4255ab4bf7474c82e478063a83bacf6fb",
"reference": "1df17da4255ab4bf7474c82e478063a83bacf6fb",
"url": "https://api.github.com/repos/AzuraCast/azuracore/zipball/ebe0d996f06874a52eac2ce5968f170aa56676ac",
"reference": "ebe0d996f06874a52eac2ce5968f170aa56676ac",
"shasum": ""
},
"require": {
@ -108,6 +108,7 @@
"cache/prefixed-cache": "^1.0",
"cache/psr-6-doctrine-bridge": "^3.0",
"cache/redis-adapter": "^1.0",
"composer/ca-bundle": "^1.2",
"doctrine/data-fixtures": "^1.3",
"doctrine/dbal": "^2.8",
"doctrine/migrations": "^2",
@ -121,7 +122,6 @@
"league/plates": "^3.1",
"mnapoli/silly-php-di": "^1.2",
"monolog/monolog": "^2",
"paragonie/certainty": "^2",
"php": ">=7.2",
"php-di/php-di": "^6.0",
"php-di/slim-bridge": "^3.0",
@ -159,7 +159,7 @@
}
],
"description": "A lightweight core application framework.",
"time": "2019-10-12T09:01:45+00:00"
"time": "2019-10-25T04:05:18+00:00"
},
{
"name": "azuracast/azuraforms",
@ -375,12 +375,12 @@
"source": {
"type": "git",
"url": "https://github.com/bernardphp/bernard.git",
"reference": "eab0f25453657aa5e0b5efa01df1e0584a2a24a9"
"reference": "fee41761e8a22dcec9e535d530ccf52204b64022"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bernardphp/bernard/zipball/eab0f25453657aa5e0b5efa01df1e0584a2a24a9",
"reference": "eab0f25453657aa5e0b5efa01df1e0584a2a24a9",
"url": "https://api.github.com/repos/bernardphp/bernard/zipball/fee41761e8a22dcec9e535d530ccf52204b64022",
"reference": "fee41761e8a22dcec9e535d530ccf52204b64022",
"shasum": ""
},
"require": {
@ -440,7 +440,7 @@
"message queue",
"queue"
],
"time": "2019-08-08T12:41:23+00:00"
"time": "2019-10-20T16:07:51+00:00"
},
{
"name": "bernard/normalt",
@ -1071,6 +1071,62 @@
],
"time": "2019-04-09T12:31:48+00:00"
},
{
"name": "composer/ca-bundle",
"version": "1.2.4",
"source": {
"type": "git",
"url": "https://github.com/composer/ca-bundle.git",
"reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/10bb96592168a0f8e8f6dcde3532d9fa50b0b527",
"reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527",
"shasum": ""
},
"require": {
"ext-openssl": "*",
"ext-pcre": "*",
"php": "^5.3.2 || ^7.0 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8",
"psr/log": "^1.0",
"symfony/process": "^2.5 || ^3.0 || ^4.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"autoload": {
"psr-4": {
"Composer\\CaBundle\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jordi Boggiano",
"email": "j.boggiano@seld.be",
"homepage": "http://seld.be"
}
],
"description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.",
"keywords": [
"cabundle",
"cacert",
"certificate",
"ssl",
"tls"
],
"time": "2019-08-30T08:44:50+00:00"
},
{
"name": "dasprid/enum",
"version": "1.0.0",
@ -2309,27 +2365,28 @@
},
{
"name": "guzzlehttp/guzzle",
"version": "6.3.3",
"version": "6.4.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
"reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba"
"reference": "0895c932405407fd3a7368b6910c09a24d26db11"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba",
"reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/0895c932405407fd3a7368b6910c09a24d26db11",
"reference": "0895c932405407fd3a7368b6910c09a24d26db11",
"shasum": ""
},
"require": {
"ext-json": "*",
"guzzlehttp/promises": "^1.0",
"guzzlehttp/psr7": "^1.4",
"guzzlehttp/psr7": "^1.6.1",
"php": ">=5.5"
},
"require-dev": {
"ext-curl": "*",
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
"psr/log": "^1.0"
"psr/log": "^1.1"
},
"suggest": {
"psr/log": "Required for using the Log middleware"
@ -2341,12 +2398,12 @@
}
},
"autoload": {
"files": [
"src/functions_include.php"
],
"psr-4": {
"GuzzleHttp\\": "src/"
}
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@ -2370,7 +2427,7 @@
"rest",
"web service"
],
"time": "2018-04-22T15:46:56+00:00"
"time": "2019-10-23T15:58:00+00:00"
},
{
"name": "guzzlehttp/oauth-subscriber",
@ -2830,16 +2887,16 @@
},
{
"name": "league/flysystem",
"version": "1.0.55",
"version": "1.0.57",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "33c91155537c6dc899eacdc54a13ac6303f156e6"
"reference": "0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/33c91155537c6dc899eacdc54a13ac6303f156e6",
"reference": "33c91155537c6dc899eacdc54a13ac6303f156e6",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a",
"reference": "0e9db7f0b96b9f12dcf6f65bc34b72b1a30ea55a",
"shasum": ""
},
"require": {
@ -2910,7 +2967,7 @@
"sftp",
"storage"
],
"time": "2019-08-24T11:17:19+00:00"
"time": "2019-10-16T21:01:05+00:00"
},
{
"name": "league/flysystem-aws-s3-v3",
@ -3725,68 +3782,6 @@
],
"time": "2019-08-10T08:37:15+00:00"
},
{
"name": "paragonie/certainty",
"version": "v2.6.0",
"source": {
"type": "git",
"url": "https://github.com/paragonie/certainty.git",
"reference": "e323b0640af27fa90105c5fbad8e15e6eff226de"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/paragonie/certainty/zipball/e323b0640af27fa90105c5fbad8e15e6eff226de",
"reference": "e323b0640af27fa90105c5fbad8e15e6eff226de",
"shasum": ""
},
"require": {
"ext-curl": "*",
"ext-json": "*",
"guzzlehttp/guzzle": "^6",
"paragonie/constant_time_encoding": "^1|^2",
"paragonie/sodium_compat": "^1.11",
"php": "^5.5|^7"
},
"require-dev": {
"composer/composer": "^1",
"phpunit/phpunit": "^4|^5|^6"
},
"bin": [
"bin/certainty-cert-symlink"
],
"type": "library",
"autoload": {
"psr-4": {
"ParagonIE\\Certainty\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"ISC"
],
"authors": [
{
"name": "Paragon Initiative Enterprises",
"email": "security@paragonie.com",
"homepage": "https://paragonie.com"
}
],
"description": "Up-to-date, verifiable repository for Certificate Authorities",
"keywords": [
"CA-Cert",
"Ed25519",
"Public-Key Infractructure",
"ca",
"ca-cert.pem",
"cacert",
"cacert.pem",
"certificate authority",
"pki",
"ssl",
"tls"
],
"time": "2019-09-29T08:05:22+00:00"
},
{
"name": "paragonie/constant_time_encoding",
"version": "v2.2.3",
@ -3894,88 +3889,6 @@
],
"time": "2018-07-02T15:55:56+00:00"
},
{
"name": "paragonie/sodium_compat",
"version": "v1.11.1",
"source": {
"type": "git",
"url": "https://github.com/paragonie/sodium_compat.git",
"reference": "a9f968bc99485f85f9303a8524c3485a7e87bc15"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/paragonie/sodium_compat/zipball/a9f968bc99485f85f9303a8524c3485a7e87bc15",
"reference": "a9f968bc99485f85f9303a8524c3485a7e87bc15",
"shasum": ""
},
"require": {
"paragonie/random_compat": ">=1",
"php": "^5.2.4|^5.3|^5.4|^5.5|^5.6|^7|^8"
},
"require-dev": {
"phpunit/phpunit": "^3|^4|^5"
},
"suggest": {
"ext-libsodium": "PHP < 7.0: Better performance, password hashing (Argon2i), secure memory management (memzero), and better security.",
"ext-sodium": "PHP >= 7.0: Better performance, password hashing (Argon2i), secure memory management (memzero), and better security."
},
"type": "library",
"autoload": {
"files": [
"autoload.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"ISC"
],
"authors": [
{
"name": "Paragon Initiative Enterprises",
"email": "security@paragonie.com"
},
{
"name": "Frank Denis",
"email": "jedisct1@pureftpd.org"
}
],
"description": "Pure PHP implementation of libsodium; uses the PHP extension if it exists",
"keywords": [
"Authentication",
"BLAKE2b",
"ChaCha20",
"ChaCha20-Poly1305",
"Chapoly",
"Curve25519",
"Ed25519",
"EdDSA",
"Edwards-curve Digital Signature Algorithm",
"Elliptic Curve Diffie-Hellman",
"Poly1305",
"Pure-PHP cryptography",
"RFC 7748",
"RFC 8032",
"Salpoly",
"Salsa20",
"X25519",
"XChaCha20-Poly1305",
"XSalsa20-Poly1305",
"Xchacha20",
"Xsalsa20",
"aead",
"cryptography",
"ecdh",
"elliptic curve",
"elliptic curve cryptography",
"encryption",
"libsodium",
"php",
"public-key cryptography",
"secret-key cryptography",
"side-channel resistant"
],
"time": "2019-09-12T12:05:58+00:00"
},
{
"name": "php-di/invoker",
"version": "2.0.0",
@ -4021,16 +3934,16 @@
},
{
"name": "php-di/php-di",
"version": "6.0.9",
"version": "6.0.10",
"source": {
"type": "git",
"url": "https://github.com/PHP-DI/PHP-DI.git",
"reference": "00a5eb0f0dd94deabb71acfbf44c37b80d53d0a1"
"reference": "a6c813bf6b0d0bdeade3ac5a920e2c2a5b1a6ce3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/00a5eb0f0dd94deabb71acfbf44c37b80d53d0a1",
"reference": "00a5eb0f0dd94deabb71acfbf44c37b80d53d0a1",
"url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/a6c813bf6b0d0bdeade3ac5a920e2c2a5b1a6ce3",
"reference": "a6c813bf6b0d0bdeade3ac5a920e2c2a5b1a6ce3",
"shasum": ""
},
"require": {
@ -4080,7 +3993,7 @@
"ioc",
"psr11"
],
"time": "2019-07-08T07:24:22+00:00"
"time": "2019-10-21T11:58:24+00:00"
},
{
"name": "php-di/phpdoc-reader",
@ -6555,16 +6468,16 @@
},
{
"name": "voku/portable-ascii",
"version": "1.2.3",
"version": "1.3.4",
"source": {
"type": "git",
"url": "https://github.com/voku/portable-ascii.git",
"reference": "d29f78e8ead9cfef6a09208c27716737c1ac56be"
"reference": "d3553af811794c377ea2afff5494b343bcef5b76"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/voku/portable-ascii/zipball/d29f78e8ead9cfef6a09208c27716737c1ac56be",
"reference": "d29f78e8ead9cfef6a09208c27716737c1ac56be",
"url": "https://api.github.com/repos/voku/portable-ascii/zipball/d3553af811794c377ea2afff5494b343bcef5b76",
"reference": "d3553af811794c377ea2afff5494b343bcef5b76",
"shasum": ""
},
"require": {
@ -6600,20 +6513,20 @@
"clean",
"php"
],
"time": "2019-09-10T13:53:07+00:00"
"time": "2019-10-14T09:49:39+00:00"
},
{
"name": "voku/portable-utf8",
"version": "5.4.24",
"version": "5.4.25",
"source": {
"type": "git",
"url": "https://github.com/voku/portable-utf8.git",
"reference": "1ff025864df28cdbb946fe96f8343904400f5e2a"
"reference": "aed1b955d5d43e4104d72dce4158db5de3cecce6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/voku/portable-utf8/zipball/1ff025864df28cdbb946fe96f8343904400f5e2a",
"reference": "1ff025864df28cdbb946fe96f8343904400f5e2a",
"url": "https://api.github.com/repos/voku/portable-utf8/zipball/aed1b955d5d43e4104d72dce4158db5de3cecce6",
"reference": "aed1b955d5d43e4104d72dce4158db5de3cecce6",
"shasum": ""
},
"require": {
@ -6623,7 +6536,7 @@
"symfony/polyfill-intl-normalizer": "~1.0",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php72": "~1.0",
"voku/portable-ascii": "~1.2"
"voku/portable-ascii": "~1.3"
},
"require-dev": {
"phpunit/phpunit": "~6.0 || ~7.0"
@ -6674,7 +6587,7 @@
"utf-8",
"utf8"
],
"time": "2019-10-06T00:26:19+00:00"
"time": "2019-10-14T06:46:29+00:00"
},
{
"name": "wikimedia/composer-merge-plugin",
@ -6961,16 +6874,16 @@
},
{
"name": "zendframework/zend-expressive-session",
"version": "1.2.1",
"version": "1.3.0",
"source": {
"type": "git",
"url": "https://github.com/zendframework/zend-expressive-session.git",
"reference": "b869aaaf2de4d734b1955bf6f79b6da25ab5ad9c"
"reference": "71615ce08f3c02b49090b14a3f3f9db23aa8652b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zendframework/zend-expressive-session/zipball/b869aaaf2de4d734b1955bf6f79b6da25ab5ad9c",
"reference": "b869aaaf2de4d734b1955bf6f79b6da25ab5ad9c",
"url": "https://api.github.com/repos/zendframework/zend-expressive-session/zipball/71615ce08f3c02b49090b14a3f3f9db23aa8652b",
"reference": "71615ce08f3c02b49090b14a3f3f9db23aa8652b",
"shasum": ""
},
"require": {
@ -6993,8 +6906,8 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.2.x-dev",
"dev-develop": "1.3.x-dev"
"dev-master": "1.3.x-dev",
"dev-develop": "1.4.x-dev"
},
"zf": {
"config-provider": "Zend\\Expressive\\Session\\ConfigProvider"
@ -7019,7 +6932,7 @@
"zend-expressive",
"zf"
],
"time": "2019-03-05T20:57:32+00:00"
"time": "2019-10-16T15:28:15+00:00"
},
{
"name": "zendframework/zend-expressive-session-cache",
@ -7736,16 +7649,16 @@
},
{
"name": "nette/bootstrap",
"version": "v3.0.0",
"version": "v3.0.1",
"source": {
"type": "git",
"url": "https://github.com/nette/bootstrap.git",
"reference": "e1075af05c211915e03e0c86542f3ba5433df4a3"
"reference": "b45a1e33b6a44beb307756522396551e5a9ff249"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/bootstrap/zipball/e1075af05c211915e03e0c86542f3ba5433df4a3",
"reference": "e1075af05c211915e03e0c86542f3ba5433df4a3",
"url": "https://api.github.com/repos/nette/bootstrap/zipball/b45a1e33b6a44beb307756522396551e5a9ff249",
"reference": "b45a1e33b6a44beb307756522396551e5a9ff249",
"shasum": ""
},
"require": {
@ -7753,6 +7666,9 @@
"nette/utils": "^3.0",
"php": ">=7.1"
},
"conflict": {
"tracy/tracy": "<2.6"
},
"require-dev": {
"latte/latte": "^2.2",
"nette/application": "^3.0",
@ -7805,7 +7721,7 @@
"configurator",
"nette"
],
"time": "2019-03-26T12:59:07+00:00"
"time": "2019-09-30T08:19:38+00:00"
},
{
"name": "nette/di",
@ -8183,16 +8099,16 @@
},
{
"name": "nette/utils",
"version": "v3.0.1",
"version": "v3.0.2",
"source": {
"type": "git",
"url": "https://github.com/nette/utils.git",
"reference": "bd961f49b211997202bda1d0fbc410905be370d4"
"reference": "c133e18c922dcf3ad07673077d92d92cef25a148"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/utils/zipball/bd961f49b211997202bda1d0fbc410905be370d4",
"reference": "bd961f49b211997202bda1d0fbc410905be370d4",
"url": "https://api.github.com/repos/nette/utils/zipball/c133e18c922dcf3ad07673077d92d92cef25a148",
"reference": "c133e18c922dcf3ad07673077d92d92cef25a148",
"shasum": ""
},
"require": {
@ -8208,6 +8124,7 @@
"ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
"ext-json": "to use Nette\\Utils\\Json",
"ext-mbstring": "to use Strings::lower() etc...",
"ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()",
"ext-xml": "to use Strings::length() etc. when mbstring is not available"
},
"type": "library",
@ -8255,7 +8172,7 @@
"utility",
"validation"
],
"time": "2019-03-22T01:00:30+00:00"
"time": "2019-10-21T20:40:16+00:00"
},
{
"name": "overtrue/phplint",
@ -8674,16 +8591,16 @@
},
{
"name": "phpstan/phpstan",
"version": "0.11.16",
"version": "0.11.19",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "635cf20f3b92ce34ee94a8d2f282d62eb9dc6e1b"
"reference": "63cc502f6957b7f74efbac444b4cf219dcadffd7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/635cf20f3b92ce34ee94a8d2f282d62eb9dc6e1b",
"reference": "635cf20f3b92ce34ee94a8d2f282d62eb9dc6e1b",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/63cc502f6957b7f74efbac444b4cf219dcadffd7",
"reference": "63cc502f6957b7f74efbac444b4cf219dcadffd7",
"shasum": ""
},
"require": {
@ -8691,6 +8608,7 @@
"jean85/pretty-package-versions": "^1.0.3",
"nette/bootstrap": "^2.4 || ^3.0",
"nette/di": "^2.4.7 || ^3.0",
"nette/neon": "^2.4.3 || ^3.0",
"nette/robot-loader": "^3.0.1",
"nette/schema": "^1.0",
"nette/utils": "^2.4.5 || ^3.0",
@ -8744,7 +8662,7 @@
"MIT"
],
"description": "PHPStan - PHP Static Analysis Tool",
"time": "2019-09-17T11:19:51+00:00"
"time": "2019-10-22T20:20:22+00:00"
},
{
"name": "phpstan/phpstan-doctrine",
@ -9981,16 +9899,16 @@
},
{
"name": "squizlabs/php_codesniffer",
"version": "3.5.0",
"version": "3.5.1",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "0afebf16a2e7f1e434920fa976253576151effe9"
"reference": "82cd0f854ceca17731d6d019c7098e3755c45060"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/0afebf16a2e7f1e434920fa976253576151effe9",
"reference": "0afebf16a2e7f1e434920fa976253576151effe9",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/82cd0f854ceca17731d6d019c7098e3755c45060",
"reference": "82cd0f854ceca17731d6d019c7098e3755c45060",
"shasum": ""
},
"require": {
@ -10028,7 +9946,7 @@
"phpcs",
"standards"
],
"time": "2019-09-26T23:12:26+00:00"
"time": "2019-10-16T21:14:26+00:00"
},
{
"name": "symfony/browser-kit",

View File

@ -255,7 +255,6 @@ return [
App\Sync\Runner::class => function (
ContainerInterface $di,
EntityManager $em,
Monolog\Logger $logger,
App\Entity\Repository\SettingsRepository $settingsRepo
) {
@ -280,7 +279,6 @@ return [
$di->get(App\Sync\Task\RadioAutomation::class),
$di->get(App\Sync\Task\HistoryCleanup::class),
$di->get(App\Sync\Task\RotateLogs::class),
$di->get(App\Sync\Task\UpdateCaCertificates::class),
]
);
},
@ -296,7 +294,6 @@ return [
App\Sync\Task\RadioRequests::class => DI\autowire(),
App\Sync\Task\RelayCleanup::class => DI\autowire(),
App\Sync\Task\RotateLogs::class => DI\autowire(),
App\Sync\Task\UpdateCaCertificates::class => DI\autowire(),
/**
* Web Hooks

View File

@ -1,44 +0,0 @@
<?php
namespace App\Sync\Task;
use App\Entity;
use Azura\CaCertificates;
use Doctrine\ORM\EntityManager;
use Psr\Log\LoggerInterface;
class UpdateCaCertificates extends AbstractTask
{
/** @var CaCertificates */
protected $caCertificates;
/** @var LoggerInterface */
protected $logger;
public function __construct(
EntityManager $em,
Entity\Repository\SettingsRepository $settingsRepo,
CaCertificates $caCertificates,
LoggerInterface $logger
) {
$this->caCertificates = $caCertificates;
$this->logger = $logger;
parent::__construct($em, $settingsRepo);
}
public function run($force = false): void
{
try {
$this->caCertificates->update();
$this->logger->info('CA certificates updated.');
} catch (\Exception $e) {
$this->logger->error('Could not update CA certificates.', [
'exception' => $e->getMessage(),
'file' => $e->getFile(),
'line' => $e->getLine(),
'code' => $e->getCode(),
]);
}
}
}