diff --git a/app/composer.lock b/app/composer.lock
index 3ebb0d9ba..387b557d1 100644
--- a/app/composer.lock
+++ b/app/composer.lock
@@ -8,16 +8,16 @@
"packages": [
{
"name": "cakephp/cakephp",
- "version": "4.4.11",
+ "version": "4.4.16",
"source": {
"type": "git",
"url": "https://github.com/cakephp/cakephp.git",
- "reference": "7d9b6a639e5c1f52a813696f6b347726a74f9680"
+ "reference": "f68c3c6f24d65cb869cceaa8975f2ca2e1d0f5b7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/cakephp/cakephp/zipball/7d9b6a639e5c1f52a813696f6b347726a74f9680",
- "reference": "7d9b6a639e5c1f52a813696f6b347726a74f9680",
+ "url": "https://api.github.com/repos/cakephp/cakephp/zipball/f68c3c6f24d65cb869cceaa8975f2ca2e1d0f5b7",
+ "reference": "f68c3c6f24d65cb869cceaa8975f2ca2e1d0f5b7",
"shasum": ""
},
"require": {
@@ -37,6 +37,14 @@
"psr/log": "^1.0 || ^2.0",
"psr/simple-cache": "^1.0 || ^2.0"
},
+ "provide": {
+ "psr/container-implementation": "^1.0 || ^2.0",
+ "psr/http-client-implementation": "^1.0",
+ "psr/http-server-handler-implementation": "^1.0",
+ "psr/http-server-middleware-implementation": "^1.0",
+ "psr/log-implementation": "^1.0 || ^2.0",
+ "psr/simple-cache-implementation": "^1.0 || ^2.0"
+ },
"replace": {
"cakephp/cache": "self.version",
"cakephp/collection": "self.version",
@@ -63,7 +71,7 @@
"suggest": {
"ext-curl": "To enable more efficient network calls in Http\\Client.",
"ext-openssl": "To use Security::encrypt() or have secure CSRF token generation.",
- "lib-ICU": "The intl PHP library, to use Text::transliterate() or Text::slug()",
+ "lib-ICU": "To use locale-aware features in the I18n and Database packages",
"paragonie/csp-builder": "CSP builder, to use the CSP Middleware"
},
"type": "library",
@@ -108,20 +116,20 @@
"issues": "https://github.com/cakephp/cakephp/issues",
"source": "https://github.com/cakephp/cakephp"
},
- "time": "2023-02-11T01:01:55+00:00"
+ "time": "2023-08-05T15:33:05+00:00"
},
{
"name": "cakephp/chronos",
- "version": "2.3.2",
+ "version": "2.4.0",
"source": {
"type": "git",
"url": "https://github.com/cakephp/chronos.git",
- "reference": "a21b7b633f483c4cf525d200219d200f551ee38b"
+ "reference": "9c7e438cba4eed1796ec19ad3874defa9eb9aeac"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/cakephp/chronos/zipball/a21b7b633f483c4cf525d200219d200f551ee38b",
- "reference": "a21b7b633f483c4cf525d200219d200f551ee38b",
+ "url": "https://api.github.com/repos/cakephp/chronos/zipball/9c7e438cba4eed1796ec19ad3874defa9eb9aeac",
+ "reference": "9c7e438cba4eed1796ec19ad3874defa9eb9aeac",
"shasum": ""
},
"require": {
@@ -166,20 +174,20 @@
"issues": "https://github.com/cakephp/chronos/issues",
"source": "https://github.com/cakephp/chronos"
},
- "time": "2022-11-08T02:17:04+00:00"
+ "time": "2023-08-06T22:54:27+00:00"
},
{
"name": "cakephp/migrations",
- "version": "3.7.2",
+ "version": "3.8.2",
"source": {
"type": "git",
"url": "https://github.com/cakephp/migrations.git",
- "reference": "97dfc6bdd0ac62f628ce51429a8737e1e5e86684"
+ "reference": "1c7c060f8d91d62b0716f9b08e3d41bfece5386e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/cakephp/migrations/zipball/97dfc6bdd0ac62f628ce51429a8737e1e5e86684",
- "reference": "97dfc6bdd0ac62f628ce51429a8737e1e5e86684",
+ "url": "https://api.github.com/repos/cakephp/migrations/zipball/1c7c060f8d91d62b0716f9b08e3d41bfece5386e",
+ "reference": "1c7c060f8d91d62b0716f9b08e3d41bfece5386e",
"shasum": ""
},
"require": {
@@ -226,7 +234,7 @@
"issues": "https://github.com/cakephp/migrations/issues",
"source": "https://github.com/cakephp/migrations"
},
- "time": "2023-01-12T15:41:05+00:00"
+ "time": "2023-06-12T01:40:01+00:00"
},
{
"name": "cakephp/plugin-installer",
@@ -279,16 +287,16 @@
},
{
"name": "composer/ca-bundle",
- "version": "1.3.5",
+ "version": "1.3.6",
"source": {
"type": "git",
"url": "https://github.com/composer/ca-bundle.git",
- "reference": "74780ccf8c19d6acb8d65c5f39cd72110e132bbd"
+ "reference": "90d087e988ff194065333d16bc5cf649872d9cdb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/ca-bundle/zipball/74780ccf8c19d6acb8d65c5f39cd72110e132bbd",
- "reference": "74780ccf8c19d6acb8d65c5f39cd72110e132bbd",
+ "url": "https://api.github.com/repos/composer/ca-bundle/zipball/90d087e988ff194065333d16bc5cf649872d9cdb",
+ "reference": "90d087e988ff194065333d16bc5cf649872d9cdb",
"shasum": ""
},
"require": {
@@ -335,7 +343,7 @@
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/ca-bundle/issues",
- "source": "https://github.com/composer/ca-bundle/tree/1.3.5"
+ "source": "https://github.com/composer/ca-bundle/tree/1.3.6"
},
"funding": [
{
@@ -351,7 +359,7 @@
"type": "tidelift"
}
],
- "time": "2023-01-11T08:27:00+00:00"
+ "time": "2023-06-06T12:02:59+00:00"
},
{
"name": "doctrine/cache",
@@ -448,16 +456,16 @@
},
{
"name": "doctrine/dbal",
- "version": "3.6.0",
+ "version": "3.6.6",
"source": {
"type": "git",
"url": "https://github.com/doctrine/dbal.git",
- "reference": "85b98cb23c8af471a67abfe14485da696bcabc2e"
+ "reference": "63646ffd71d1676d2f747f871be31b7e921c7864"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/dbal/zipball/85b98cb23c8af471a67abfe14485da696bcabc2e",
- "reference": "85b98cb23c8af471a67abfe14485da696bcabc2e",
+ "url": "https://api.github.com/repos/doctrine/dbal/zipball/63646ffd71d1676d2f747f871be31b7e921c7864",
+ "reference": "63646ffd71d1676d2f747f871be31b7e921c7864",
"shasum": ""
},
"require": {
@@ -470,14 +478,15 @@
"psr/log": "^1|^2|^3"
},
"require-dev": {
- "doctrine/coding-standard": "11.1.0",
+ "doctrine/coding-standard": "12.0.0",
"fig/log-test": "^1",
- "jetbrains/phpstorm-stubs": "2022.3",
- "phpstan/phpstan": "1.9.14",
- "phpstan/phpstan-strict-rules": "^1.4",
- "phpunit/phpunit": "9.6.3",
+ "jetbrains/phpstorm-stubs": "2023.1",
+ "phpstan/phpstan": "1.10.29",
+ "phpstan/phpstan-strict-rules": "^1.5",
+ "phpunit/phpunit": "9.6.9",
"psalm/plugin-phpunit": "0.18.4",
- "squizlabs/php_codesniffer": "3.7.1",
+ "slevomat/coding-standard": "8.13.1",
+ "squizlabs/php_codesniffer": "3.7.2",
"symfony/cache": "^5.4|^6.0",
"symfony/console": "^4.4|^5.4|^6.0",
"vimeo/psalm": "4.30.0"
@@ -540,7 +549,7 @@
],
"support": {
"issues": "https://github.com/doctrine/dbal/issues",
- "source": "https://github.com/doctrine/dbal/tree/3.6.0"
+ "source": "https://github.com/doctrine/dbal/tree/3.6.6"
},
"funding": [
{
@@ -556,29 +565,33 @@
"type": "tidelift"
}
],
- "time": "2023-02-07T22:52:03+00:00"
+ "time": "2023-08-17T05:38:17+00:00"
},
{
"name": "doctrine/deprecations",
- "version": "v1.0.0",
+ "version": "v1.1.1",
"source": {
"type": "git",
"url": "https://github.com/doctrine/deprecations.git",
- "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de"
+ "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de",
- "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de",
+ "url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3",
+ "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3",
"shasum": ""
},
"require": {
- "php": "^7.1|^8.0"
+ "php": "^7.1 || ^8.0"
},
"require-dev": {
"doctrine/coding-standard": "^9",
- "phpunit/phpunit": "^7.5|^8.5|^9.5",
- "psr/log": "^1|^2|^3"
+ "phpstan/phpstan": "1.4.10 || 1.10.15",
+ "phpstan/phpstan-phpunit": "^1.0",
+ "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
+ "psalm/plugin-phpunit": "0.18.4",
+ "psr/log": "^1 || ^2 || ^3",
+ "vimeo/psalm": "4.30.0 || 5.12.0"
},
"suggest": {
"psr/log": "Allows logging deprecations via PSR-3 logger implementation"
@@ -597,9 +610,9 @@
"homepage": "https://www.doctrine-project.org/",
"support": {
"issues": "https://github.com/doctrine/deprecations/issues",
- "source": "https://github.com/doctrine/deprecations/tree/v1.0.0"
+ "source": "https://github.com/doctrine/deprecations/tree/v1.1.1"
},
- "time": "2022-05-02T15:47:09+00:00"
+ "time": "2023-06-03T09:27:29+00:00"
},
{
"name": "doctrine/event-manager",
@@ -694,22 +707,22 @@
},
{
"name": "laminas/laminas-diactoros",
- "version": "2.24.0",
+ "version": "2.25.2",
"source": {
"type": "git",
"url": "https://github.com/laminas/laminas-diactoros.git",
- "reference": "6028af6c3b5ced4d063a680d2483cce67578b902"
+ "reference": "9f3f4bf5b99c9538b6f1dbcc20f6fec357914f9e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/6028af6c3b5ced4d063a680d2483cce67578b902",
- "reference": "6028af6c3b5ced4d063a680d2483cce67578b902",
+ "url": "https://api.github.com/repos/laminas/laminas-diactoros/zipball/9f3f4bf5b99c9538b6f1dbcc20f6fec357914f9e",
+ "reference": "9f3f4bf5b99c9538b6f1dbcc20f6fec357914f9e",
"shasum": ""
},
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"psr/http-factory": "^1.0",
- "psr/http-message": "^1.0"
+ "psr/http-message": "^1.1"
},
"conflict": {
"zendframework/zend-diactoros": "*"
@@ -724,11 +737,11 @@
"ext-gd": "*",
"ext-libxml": "*",
"http-interop/http-factory-tests": "^0.9.0",
- "laminas/laminas-coding-standard": "^2.4.0",
+ "laminas/laminas-coding-standard": "^2.5",
"php-http/psr7-integration-tests": "^1.2",
- "phpunit/phpunit": "^9.5.27",
+ "phpunit/phpunit": "^9.5.28",
"psalm/plugin-phpunit": "^0.18.4",
- "vimeo/psalm": "^5.4"
+ "vimeo/psalm": "^5.6"
},
"type": "library",
"extra": {
@@ -787,34 +800,34 @@
"type": "community_bridge"
}
],
- "time": "2022-12-20T12:22:40+00:00"
+ "time": "2023-04-17T15:44:17+00:00"
},
{
"name": "laminas/laminas-httphandlerrunner",
- "version": "2.5.0",
+ "version": "2.7.0",
"source": {
"type": "git",
"url": "https://github.com/laminas/laminas-httphandlerrunner.git",
- "reference": "7a47834aaad7852816d2ec4fdbb0492163b039ae"
+ "reference": "ab1fe48f1c367953d7e8f5cfbaf902672551d524"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laminas/laminas-httphandlerrunner/zipball/7a47834aaad7852816d2ec4fdbb0492163b039ae",
- "reference": "7a47834aaad7852816d2ec4fdbb0492163b039ae",
+ "url": "https://api.github.com/repos/laminas/laminas-httphandlerrunner/zipball/ab1fe48f1c367953d7e8f5cfbaf902672551d524",
+ "reference": "ab1fe48f1c367953d7e8f5cfbaf902672551d524",
"shasum": ""
},
"require": {
- "php": "~8.0.0 || ~8.1.0 || ~8.2.0",
- "psr/http-message": "^1.0",
- "psr/http-message-implementation": "^1.0",
+ "php": "~8.1.0 || ~8.2.0",
+ "psr/http-message": "^1.0 || ^2.0",
+ "psr/http-message-implementation": "^1.0 || ^2.0",
"psr/http-server-handler": "^1.0"
},
"require-dev": {
- "laminas/laminas-coding-standard": "~2.4.0",
- "laminas/laminas-diactoros": "^2.18",
- "phpunit/phpunit": "^9.5.26",
- "psalm/plugin-phpunit": "^0.18.0",
- "vimeo/psalm": "^5.0.0"
+ "laminas/laminas-coding-standard": "~2.5.0",
+ "laminas/laminas-diactoros": "^3.0.0",
+ "phpunit/phpunit": "^10.1.2",
+ "psalm/plugin-phpunit": "^0.18.4",
+ "vimeo/psalm": "^5.11"
},
"type": "library",
"extra": {
@@ -854,7 +867,7 @@
"type": "community_bridge"
}
],
- "time": "2023-01-05T21:54:03+00:00"
+ "time": "2023-07-25T20:20:46+00:00"
},
{
"name": "league/container",
@@ -1098,21 +1111,21 @@
},
{
"name": "psr/http-client",
- "version": "1.0.1",
+ "version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-client.git",
- "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
+ "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
- "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
+ "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31",
+ "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31",
"shasum": ""
},
"require": {
"php": "^7.0 || ^8.0",
- "psr/http-message": "^1.0"
+ "psr/http-message": "^1.0 || ^2.0"
},
"type": "library",
"extra": {
@@ -1132,7 +1145,7 @@
"authors": [
{
"name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
+ "homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for HTTP clients",
@@ -1144,27 +1157,27 @@
"psr-18"
],
"support": {
- "source": "https://github.com/php-fig/http-client/tree/master"
+ "source": "https://github.com/php-fig/http-client/tree/1.0.2"
},
- "time": "2020-06-29T06:28:15+00:00"
+ "time": "2023-04-10T20:12:12+00:00"
},
{
"name": "psr/http-factory",
- "version": "1.0.1",
+ "version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-factory.git",
- "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
+ "reference": "e616d01114759c4c489f93b099585439f795fe35"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
- "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
+ "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35",
+ "reference": "e616d01114759c4c489f93b099585439f795fe35",
"shasum": ""
},
"require": {
"php": ">=7.0.0",
- "psr/http-message": "^1.0"
+ "psr/http-message": "^1.0 || ^2.0"
},
"type": "library",
"extra": {
@@ -1184,7 +1197,7 @@
"authors": [
{
"name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
+ "homepage": "https://www.php-fig.org/"
}
],
"description": "Common interfaces for PSR-7 HTTP message factories",
@@ -1199,31 +1212,31 @@
"response"
],
"support": {
- "source": "https://github.com/php-fig/http-factory/tree/master"
+ "source": "https://github.com/php-fig/http-factory/tree/1.0.2"
},
- "time": "2019-04-30T12:38:16+00:00"
+ "time": "2023-04-10T20:10:41+00:00"
},
{
"name": "psr/http-message",
- "version": "1.0.1",
+ "version": "1.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
+ "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
+ "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
+ "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"shasum": ""
},
"require": {
- "php": ">=5.3.0"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "1.1.x-dev"
}
},
"autoload": {
@@ -1252,27 +1265,27 @@
"response"
],
"support": {
- "source": "https://github.com/php-fig/http-message/tree/master"
+ "source": "https://github.com/php-fig/http-message/tree/1.1"
},
- "time": "2016-08-06T14:39:51+00:00"
+ "time": "2023-04-04T09:50:52+00:00"
},
{
"name": "psr/http-server-handler",
- "version": "1.0.1",
+ "version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-server-handler.git",
- "reference": "aff2f80e33b7f026ec96bb42f63242dc50ffcae7"
+ "reference": "84c4fb66179be4caaf8e97bd239203245302e7d4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-server-handler/zipball/aff2f80e33b7f026ec96bb42f63242dc50ffcae7",
- "reference": "aff2f80e33b7f026ec96bb42f63242dc50ffcae7",
+ "url": "https://api.github.com/repos/php-fig/http-server-handler/zipball/84c4fb66179be4caaf8e97bd239203245302e7d4",
+ "reference": "84c4fb66179be4caaf8e97bd239203245302e7d4",
"shasum": ""
},
"require": {
"php": ">=7.0",
- "psr/http-message": "^1.0"
+ "psr/http-message": "^1.0 || ^2.0"
},
"type": "library",
"extra": {
@@ -1292,7 +1305,7 @@
"authors": [
{
"name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
+ "homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for HTTP server-side request handler",
@@ -1308,28 +1321,27 @@
"server"
],
"support": {
- "issues": "https://github.com/php-fig/http-server-handler/issues",
- "source": "https://github.com/php-fig/http-server-handler/tree/master"
+ "source": "https://github.com/php-fig/http-server-handler/tree/1.0.2"
},
- "time": "2018-10-30T16:46:14+00:00"
+ "time": "2023-04-10T20:06:20+00:00"
},
{
"name": "psr/http-server-middleware",
- "version": "1.0.1",
+ "version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-server-middleware.git",
- "reference": "2296f45510945530b9dceb8bcedb5cb84d40c5f5"
+ "reference": "c1481f747daaa6a0782775cd6a8c26a1bf4a3829"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-server-middleware/zipball/2296f45510945530b9dceb8bcedb5cb84d40c5f5",
- "reference": "2296f45510945530b9dceb8bcedb5cb84d40c5f5",
+ "url": "https://api.github.com/repos/php-fig/http-server-middleware/zipball/c1481f747daaa6a0782775cd6a8c26a1bf4a3829",
+ "reference": "c1481f747daaa6a0782775cd6a8c26a1bf4a3829",
"shasum": ""
},
"require": {
"php": ">=7.0",
- "psr/http-message": "^1.0",
+ "psr/http-message": "^1.0 || ^2.0",
"psr/http-server-handler": "^1.0"
},
"type": "library",
@@ -1350,7 +1362,7 @@
"authors": [
{
"name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
+ "homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for HTTP server-side middleware",
@@ -1366,9 +1378,9 @@
],
"support": {
"issues": "https://github.com/php-fig/http-server-middleware/issues",
- "source": "https://github.com/php-fig/http-server-middleware/tree/master"
+ "source": "https://github.com/php-fig/http-server-middleware/tree/1.0.2"
},
- "time": "2018-10-30T17:12:04+00:00"
+ "time": "2023-04-11T06:14:47+00:00"
},
{
"name": "psr/log",
@@ -1559,37 +1571,35 @@
},
{
"name": "symfony/config",
- "version": "v6.2.5",
+ "version": "v6.3.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/config.git",
- "reference": "f31b3c78a3650157188a240695e688d6a182aa91"
+ "reference": "b47ca238b03e7b0d7880ffd1cf06e8d637ca1467"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/f31b3c78a3650157188a240695e688d6a182aa91",
- "reference": "f31b3c78a3650157188a240695e688d6a182aa91",
+ "url": "https://api.github.com/repos/symfony/config/zipball/b47ca238b03e7b0d7880ffd1cf06e8d637ca1467",
+ "reference": "b47ca238b03e7b0d7880ffd1cf06e8d637ca1467",
"shasum": ""
},
"require": {
"php": ">=8.1",
- "symfony/deprecation-contracts": "^2.1|^3",
+ "symfony/deprecation-contracts": "^2.5|^3",
"symfony/filesystem": "^5.4|^6.0",
"symfony/polyfill-ctype": "~1.8"
},
"conflict": {
- "symfony/finder": "<5.4"
+ "symfony/finder": "<5.4",
+ "symfony/service-contracts": "<2.5"
},
"require-dev": {
"symfony/event-dispatcher": "^5.4|^6.0",
"symfony/finder": "^5.4|^6.0",
"symfony/messenger": "^5.4|^6.0",
- "symfony/service-contracts": "^1.1|^2|^3",
+ "symfony/service-contracts": "^2.5|^3",
"symfony/yaml": "^5.4|^6.0"
},
- "suggest": {
- "symfony/yaml": "To use the yaml reference dumper"
- },
"type": "library",
"autoload": {
"psr-4": {
@@ -1616,7 +1626,7 @@
"description": "Helps you find, load, combine, autofill and validate configuration values of any kind",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/config/tree/v6.2.5"
+ "source": "https://github.com/symfony/config/tree/v6.3.2"
},
"funding": [
{
@@ -1632,27 +1642,27 @@
"type": "tidelift"
}
],
- "time": "2023-01-09T04:38:22+00:00"
+ "time": "2023-07-19T20:22:16+00:00"
},
{
"name": "symfony/console",
- "version": "v6.2.5",
+ "version": "v6.3.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "3e294254f2191762c1d137aed4b94e966965e985"
+ "reference": "aa5d64ad3f63f2e48964fc81ee45cb318a723898"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/3e294254f2191762c1d137aed4b94e966965e985",
- "reference": "3e294254f2191762c1d137aed4b94e966965e985",
+ "url": "https://api.github.com/repos/symfony/console/zipball/aa5d64ad3f63f2e48964fc81ee45cb318a723898",
+ "reference": "aa5d64ad3f63f2e48964fc81ee45cb318a723898",
"shasum": ""
},
"require": {
"php": ">=8.1",
- "symfony/deprecation-contracts": "^2.1|^3",
+ "symfony/deprecation-contracts": "^2.5|^3",
"symfony/polyfill-mbstring": "~1.0",
- "symfony/service-contracts": "^1.1|^2|^3",
+ "symfony/service-contracts": "^2.5|^3",
"symfony/string": "^5.4|^6.0"
},
"conflict": {
@@ -1674,12 +1684,6 @@
"symfony/process": "^5.4|^6.0",
"symfony/var-dumper": "^5.4|^6.0"
},
- "suggest": {
- "psr/log": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
- },
"type": "library",
"autoload": {
"psr-4": {
@@ -1707,12 +1711,12 @@
"homepage": "https://symfony.com",
"keywords": [
"cli",
- "command line",
+ "command-line",
"console",
"terminal"
],
"support": {
- "source": "https://github.com/symfony/console/tree/v6.2.5"
+ "source": "https://github.com/symfony/console/tree/v6.3.2"
},
"funding": [
{
@@ -1728,20 +1732,20 @@
"type": "tidelift"
}
],
- "time": "2023-01-01T08:38:09+00:00"
+ "time": "2023-07-19T20:17:28+00:00"
},
{
"name": "symfony/deprecation-contracts",
- "version": "v3.2.0",
+ "version": "v3.3.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "1ee04c65529dea5d8744774d474e7cbd2f1206d3"
+ "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/1ee04c65529dea5d8744774d474e7cbd2f1206d3",
- "reference": "1ee04c65529dea5d8744774d474e7cbd2f1206d3",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf",
+ "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf",
"shasum": ""
},
"require": {
@@ -1750,7 +1754,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "3.3-dev"
+ "dev-main": "3.4-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -1779,7 +1783,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/deprecation-contracts/tree/v3.2.0"
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v3.3.0"
},
"funding": [
{
@@ -1795,20 +1799,20 @@
"type": "tidelift"
}
],
- "time": "2022-11-25T10:21:52+00:00"
+ "time": "2023-05-23T14:45:45+00:00"
},
{
"name": "symfony/filesystem",
- "version": "v6.2.5",
+ "version": "v6.3.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
- "reference": "e59e8a4006afd7f5654786a83b4fcb8da98f4593"
+ "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/e59e8a4006afd7f5654786a83b4fcb8da98f4593",
- "reference": "e59e8a4006afd7f5654786a83b4fcb8da98f4593",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/edd36776956f2a6fcf577edb5b05eb0e3bdc52ae",
+ "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae",
"shasum": ""
},
"require": {
@@ -1842,7 +1846,7 @@
"description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/filesystem/tree/v6.2.5"
+ "source": "https://github.com/symfony/filesystem/tree/v6.3.1"
},
"funding": [
{
@@ -1858,7 +1862,7 @@
"type": "tidelift"
}
],
- "time": "2023-01-20T17:45:48+00:00"
+ "time": "2023-06-01T08:30:39+00:00"
},
{
"name": "symfony/polyfill-ctype",
@@ -2192,16 +2196,16 @@
},
{
"name": "symfony/service-contracts",
- "version": "v3.2.0",
+ "version": "v3.3.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
- "reference": "aac98028c69df04ee77eb69b96b86ee51fbf4b75"
+ "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/service-contracts/zipball/aac98028c69df04ee77eb69b96b86ee51fbf4b75",
- "reference": "aac98028c69df04ee77eb69b96b86ee51fbf4b75",
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/40da9cc13ec349d9e4966ce18b5fbcd724ab10a4",
+ "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4",
"shasum": ""
},
"require": {
@@ -2211,13 +2215,10 @@
"conflict": {
"ext-psr": "<1.1|>=2"
},
- "suggest": {
- "symfony/service-implementation": ""
- },
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "3.3-dev"
+ "dev-main": "3.4-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -2257,7 +2258,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/service-contracts/tree/v3.2.0"
+ "source": "https://github.com/symfony/service-contracts/tree/v3.3.0"
},
"funding": [
{
@@ -2273,20 +2274,20 @@
"type": "tidelift"
}
],
- "time": "2022-11-25T10:21:52+00:00"
+ "time": "2023-05-23T14:45:45+00:00"
},
{
"name": "symfony/string",
- "version": "v6.2.5",
+ "version": "v6.3.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0"
+ "reference": "53d1a83225002635bca3482fcbf963001313fb68"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0",
- "reference": "b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0",
+ "url": "https://api.github.com/repos/symfony/string/zipball/53d1a83225002635bca3482fcbf963001313fb68",
+ "reference": "53d1a83225002635bca3482fcbf963001313fb68",
"shasum": ""
},
"require": {
@@ -2297,13 +2298,13 @@
"symfony/polyfill-mbstring": "~1.0"
},
"conflict": {
- "symfony/translation-contracts": "<2.0"
+ "symfony/translation-contracts": "<2.5"
},
"require-dev": {
"symfony/error-handler": "^5.4|^6.0",
"symfony/http-client": "^5.4|^6.0",
"symfony/intl": "^6.2",
- "symfony/translation-contracts": "^2.0|^3.0",
+ "symfony/translation-contracts": "^2.5|^3.0",
"symfony/var-exporter": "^5.4|^6.0"
},
"type": "library",
@@ -2343,7 +2344,7 @@
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v6.2.5"
+ "source": "https://github.com/symfony/string/tree/v6.3.2"
},
"funding": [
{
@@ -2359,7 +2360,7 @@
"type": "tidelift"
}
],
- "time": "2023-01-01T08:38:09+00:00"
+ "time": "2023-07-05T08:41:27+00:00"
}
],
"packages-dev": [
@@ -2414,16 +2415,16 @@
},
{
"name": "cakephp/bake",
- "version": "2.8.2",
+ "version": "2.9.3",
"source": {
"type": "git",
"url": "https://github.com/cakephp/bake.git",
- "reference": "ef021497ab517c33ecd97d2184200d8990ffc0ab"
+ "reference": "a9b02fb6a5f96e8fb9887be55cccea501468907b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/cakephp/bake/zipball/ef021497ab517c33ecd97d2184200d8990ffc0ab",
- "reference": "ef021497ab517c33ecd97d2184200d8990ffc0ab",
+ "url": "https://api.github.com/repos/cakephp/bake/zipball/a9b02fb6a5f96e8fb9887be55cccea501468907b",
+ "reference": "a9b02fb6a5f96e8fb9887be55cccea501468907b",
"shasum": ""
},
"require": {
@@ -2467,25 +2468,25 @@
"issues": "https://github.com/cakephp/bake/issues",
"source": "https://github.com/cakephp/bake"
},
- "time": "2022-10-05T18:45:20+00:00"
+ "time": "2023-03-18T19:26:16+00:00"
},
{
"name": "cakephp/cakephp-codesniffer",
- "version": "4.6.0",
+ "version": "4.7.0",
"source": {
"type": "git",
"url": "https://github.com/cakephp/cakephp-codesniffer.git",
- "reference": "5a64e6e6434128f6a1549318de86c564737d5cda"
+ "reference": "24fa2321d54e5251ac2f59dd92dd2066f0b0bdae"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/cakephp/cakephp-codesniffer/zipball/5a64e6e6434128f6a1549318de86c564737d5cda",
- "reference": "5a64e6e6434128f6a1549318de86c564737d5cda",
+ "url": "https://api.github.com/repos/cakephp/cakephp-codesniffer/zipball/24fa2321d54e5251ac2f59dd92dd2066f0b0bdae",
+ "reference": "24fa2321d54e5251ac2f59dd92dd2066f0b0bdae",
"shasum": ""
},
"require": {
"php": ">=7.2.0",
- "slevomat/coding-standard": "^6.3.6 || ^7.0 || ^8.0",
+ "slevomat/coding-standard": "^7.0 || ^8.0",
"squizlabs/php_codesniffer": "^3.6"
},
"require-dev": {
@@ -2519,20 +2520,20 @@
"issues": "https://github.com/cakephp/cakephp-codesniffer/issues",
"source": "https://github.com/cakephp/cakephp-codesniffer"
},
- "time": "2022-07-04T03:29:58+00:00"
+ "time": "2023-04-10T06:35:04+00:00"
},
{
"name": "cakephp/debug_kit",
- "version": "4.9.3",
+ "version": "4.9.4",
"source": {
"type": "git",
"url": "https://github.com/cakephp/debug_kit.git",
- "reference": "db848e787bf53483069cba2feb449c2e8523f525"
+ "reference": "663491edec4a6b9111f1cf4733ebd471450df71e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/cakephp/debug_kit/zipball/db848e787bf53483069cba2feb449c2e8523f525",
- "reference": "db848e787bf53483069cba2feb449c2e8523f525",
+ "url": "https://api.github.com/repos/cakephp/debug_kit/zipball/663491edec4a6b9111f1cf4733ebd471450df71e",
+ "reference": "663491edec4a6b9111f1cf4733ebd471450df71e",
"shasum": ""
},
"require": {
@@ -2580,12 +2581,12 @@
"kit"
],
"support": {
- "forum": "http://stackoverflow.com/tags/cakephp",
+ "forum": "https://stackoverflow.com/tags/cakephp",
"irc": "irc://irc.freenode.org/cakephp",
"issues": "https://github.com/cakephp/debug_kit/issues",
"source": "https://github.com/cakephp/debug_kit"
},
- "time": "2023-01-25T04:49:08+00:00"
+ "time": "2023-07-05T16:04:04+00:00"
},
{
"name": "cakephp/twig-view",
@@ -2652,22 +2653,22 @@
},
{
"name": "composer/class-map-generator",
- "version": "1.0.0",
+ "version": "1.1.0",
"source": {
"type": "git",
"url": "https://github.com/composer/class-map-generator.git",
- "reference": "1e1cb2b791facb2dfe32932a7718cf2571187513"
+ "reference": "953cc4ea32e0c31f2185549c7d216d7921f03da9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/class-map-generator/zipball/1e1cb2b791facb2dfe32932a7718cf2571187513",
- "reference": "1e1cb2b791facb2dfe32932a7718cf2571187513",
+ "url": "https://api.github.com/repos/composer/class-map-generator/zipball/953cc4ea32e0c31f2185549c7d216d7921f03da9",
+ "reference": "953cc4ea32e0c31f2185549c7d216d7921f03da9",
"shasum": ""
},
"require": {
- "composer/pcre": "^2 || ^3",
+ "composer/pcre": "^2.1 || ^3.1",
"php": "^7.2 || ^8.0",
- "symfony/finder": "^4.4 || ^5.3 || ^6"
+ "symfony/finder": "^4.4 || ^5.3 || ^6 || ^7"
},
"require-dev": {
"phpstan/phpstan": "^1.6",
@@ -2705,7 +2706,7 @@
],
"support": {
"issues": "https://github.com/composer/class-map-generator/issues",
- "source": "https://github.com/composer/class-map-generator/tree/1.0.0"
+ "source": "https://github.com/composer/class-map-generator/tree/1.1.0"
},
"funding": [
{
@@ -2721,20 +2722,20 @@
"type": "tidelift"
}
],
- "time": "2022-06-19T11:31:27+00:00"
+ "time": "2023-06-30T13:58:57+00:00"
},
{
"name": "composer/composer",
- "version": "2.5.3",
+ "version": "2.5.8",
"source": {
"type": "git",
"url": "https://github.com/composer/composer.git",
- "reference": "607a4c04006ce1d2b6fdfd5467bae3d7ad9ce5ab"
+ "reference": "4c516146167d1392c8b9b269bb7c24115d262164"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/composer/zipball/607a4c04006ce1d2b6fdfd5467bae3d7ad9ce5ab",
- "reference": "607a4c04006ce1d2b6fdfd5467bae3d7ad9ce5ab",
+ "url": "https://api.github.com/repos/composer/composer/zipball/4c516146167d1392c8b9b269bb7c24115d262164",
+ "reference": "4c516146167d1392c8b9b269bb7c24115d262164",
"shasum": ""
},
"require": {
@@ -2818,7 +2819,7 @@
"support": {
"irc": "ircs://irc.libera.chat:6697/composer",
"issues": "https://github.com/composer/composer/issues",
- "source": "https://github.com/composer/composer/tree/2.5.3"
+ "source": "https://github.com/composer/composer/tree/2.5.8"
},
"funding": [
{
@@ -2834,7 +2835,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-10T12:23:52+00:00"
+ "time": "2023-06-09T15:13:21+00:00"
},
{
"name": "composer/metadata-minifier",
@@ -3465,7 +3466,7 @@
],
"support": {
"issues": "https://github.com/jdorn/sql-formatter/issues",
- "source": "https://github.com/jdorn/sql-formatter/tree/master"
+ "source": "https://github.com/jdorn/sql-formatter/tree/v1.2.17"
},
"time": "2014-01-12T16:20:24+00:00"
},
@@ -3660,16 +3661,16 @@
},
{
"name": "myclabs/deep-copy",
- "version": "1.11.0",
+ "version": "1.11.1",
"source": {
"type": "git",
"url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614"
+ "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614",
- "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
+ "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
"shasum": ""
},
"require": {
@@ -3707,7 +3708,7 @@
],
"support": {
"issues": "https://github.com/myclabs/DeepCopy/issues",
- "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0"
+ "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1"
},
"funding": [
{
@@ -3715,20 +3716,20 @@
"type": "tidelift"
}
],
- "time": "2022-03-03T13:19:32+00:00"
+ "time": "2023-03-08T13:26:56+00:00"
},
{
"name": "nikic/php-parser",
- "version": "v4.15.3",
+ "version": "v4.17.1",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039"
+ "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/570e980a201d8ed0236b0a62ddf2c9cbb2034039",
- "reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
+ "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
"shasum": ""
},
"require": {
@@ -3769,9 +3770,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.3"
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1"
},
- "time": "2023-01-16T22:05:37+00:00"
+ "time": "2023-08-13T19:53:39+00:00"
},
{
"name": "phar-io/manifest",
@@ -3886,22 +3887,24 @@
},
{
"name": "phpstan/phpdoc-parser",
- "version": "1.15.3",
+ "version": "1.23.1",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
- "reference": "61800f71a5526081d1b5633766aa88341f1ade76"
+ "reference": "846ae76eef31c6d7790fac9bc399ecee45160b26"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/61800f71a5526081d1b5633766aa88341f1ade76",
- "reference": "61800f71a5526081d1b5633766aa88341f1ade76",
+ "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/846ae76eef31c6d7790fac9bc399ecee45160b26",
+ "reference": "846ae76eef31c6d7790fac9bc399ecee45160b26",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0"
},
"require-dev": {
+ "doctrine/annotations": "^2.0",
+ "nikic/php-parser": "^4.15",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.5",
@@ -3925,29 +3928,29 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
- "source": "https://github.com/phpstan/phpdoc-parser/tree/1.15.3"
+ "source": "https://github.com/phpstan/phpdoc-parser/tree/1.23.1"
},
- "time": "2022-12-20T20:56:55+00:00"
+ "time": "2023-08-03T16:32:59+00:00"
},
{
"name": "phpunit/php-code-coverage",
- "version": "9.2.24",
+ "version": "9.2.27",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed"
+ "reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2cf940ebc6355a9d430462811b5aaa308b174bed",
- "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/b0a88255cb70d52653d80c890bd7f38740ea50d1",
+ "reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-libxml": "*",
"ext-xmlwriter": "*",
- "nikic/php-parser": "^4.14",
+ "nikic/php-parser": "^4.15",
"php": ">=7.3",
"phpunit/php-file-iterator": "^3.0.3",
"phpunit/php-text-template": "^2.0.2",
@@ -3962,8 +3965,8 @@
"phpunit/phpunit": "^9.3"
},
"suggest": {
- "ext-pcov": "*",
- "ext-xdebug": "*"
+ "ext-pcov": "PHP extension that provides line coverage",
+ "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
},
"type": "library",
"extra": {
@@ -3996,7 +3999,8 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.24"
+ "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.27"
},
"funding": [
{
@@ -4004,7 +4008,7 @@
"type": "github"
}
],
- "time": "2023-01-26T08:26:55+00:00"
+ "time": "2023-07-26T13:44:30+00:00"
},
{
"name": "phpunit/php-file-iterator",
@@ -4249,16 +4253,16 @@
},
{
"name": "phpunit/phpunit",
- "version": "9.6.3",
+ "version": "9.6.10",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555"
+ "reference": "a6d351645c3fe5a30f5e86be6577d946af65a328"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e7b1615e3e887d6c719121c6d4a44b0ab9645555",
- "reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a6d351645c3fe5a30f5e86be6577d946af65a328",
+ "reference": "a6d351645c3fe5a30f5e86be6577d946af65a328",
"shasum": ""
},
"require": {
@@ -4291,8 +4295,8 @@
"sebastian/version": "^3.0.2"
},
"suggest": {
- "ext-soap": "*",
- "ext-xdebug": "*"
+ "ext-soap": "To be able to generate mocks based on WSDL files",
+ "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
},
"bin": [
"phpunit"
@@ -4331,7 +4335,8 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.3"
+ "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.10"
},
"funding": [
{
@@ -4347,20 +4352,20 @@
"type": "tidelift"
}
],
- "time": "2023-02-04T13:37:15+00:00"
+ "time": "2023-07-10T04:04:23+00:00"
},
{
"name": "psy/psysh",
- "version": "v0.11.12",
+ "version": "v0.11.20",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
- "reference": "52cb7c47d403c31c0adc9bf7710fc355f93c20f7"
+ "reference": "0fa27040553d1d280a67a4393194df5228afea5b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/bobthecow/psysh/zipball/52cb7c47d403c31c0adc9bf7710fc355f93c20f7",
- "reference": "52cb7c47d403c31c0adc9bf7710fc355f93c20f7",
+ "url": "https://api.github.com/repos/bobthecow/psysh/zipball/0fa27040553d1d280a67a4393194df5228afea5b",
+ "reference": "0fa27040553d1d280a67a4393194df5228afea5b",
"shasum": ""
},
"require": {
@@ -4421,29 +4426,29 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
- "source": "https://github.com/bobthecow/psysh/tree/v0.11.12"
+ "source": "https://github.com/bobthecow/psysh/tree/v0.11.20"
},
- "time": "2023-01-29T21:24:40+00:00"
+ "time": "2023-07-31T14:32:22+00:00"
},
{
"name": "react/promise",
- "version": "v2.9.0",
+ "version": "v2.10.0",
"source": {
"type": "git",
"url": "https://github.com/reactphp/promise.git",
- "reference": "234f8fd1023c9158e2314fa9d7d0e6a83db42910"
+ "reference": "f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/reactphp/promise/zipball/234f8fd1023c9158e2314fa9d7d0e6a83db42910",
- "reference": "234f8fd1023c9158e2314fa9d7d0e6a83db42910",
+ "url": "https://api.github.com/repos/reactphp/promise/zipball/f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38",
+ "reference": "f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38",
"shasum": ""
},
"require": {
"php": ">=5.4.0"
},
"require-dev": {
- "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.36"
+ "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.36"
},
"type": "library",
"autoload": {
@@ -4487,19 +4492,15 @@
],
"support": {
"issues": "https://github.com/reactphp/promise/issues",
- "source": "https://github.com/reactphp/promise/tree/v2.9.0"
+ "source": "https://github.com/reactphp/promise/tree/v2.10.0"
},
"funding": [
{
- "url": "https://github.com/WyriHaximus",
- "type": "github"
- },
- {
- "url": "https://github.com/clue",
- "type": "github"
+ "url": "https://opencollective.com/reactphp",
+ "type": "open_collective"
}
],
- "time": "2022-02-11T10:27:51+00:00"
+ "time": "2023-05-02T15:15:43+00:00"
},
{
"name": "sebastian/cli-parser",
@@ -4801,16 +4802,16 @@
},
{
"name": "sebastian/diff",
- "version": "4.0.4",
+ "version": "4.0.5",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d"
+ "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d",
- "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
+ "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
"shasum": ""
},
"require": {
@@ -4855,7 +4856,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/diff/issues",
- "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
+ "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5"
},
"funding": [
{
@@ -4863,7 +4864,7 @@
"type": "github"
}
],
- "time": "2020-10-26T13:10:38+00:00"
+ "time": "2023-05-07T05:35:17+00:00"
},
{
"name": "sebastian/environment",
@@ -5007,16 +5008,16 @@
},
{
"name": "sebastian/global-state",
- "version": "5.0.5",
+ "version": "5.0.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2"
+ "reference": "bde739e7565280bda77be70044ac1047bc007e34"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2",
- "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34",
+ "reference": "bde739e7565280bda77be70044ac1047bc007e34",
"shasum": ""
},
"require": {
@@ -5059,7 +5060,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/global-state/issues",
- "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5"
+ "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.6"
},
"funding": [
{
@@ -5067,7 +5068,7 @@
"type": "github"
}
],
- "time": "2022-02-14T08:28:10+00:00"
+ "time": "2023-08-02T09:26:13+00:00"
},
{
"name": "sebastian/lines-of-code",
@@ -5467,16 +5468,16 @@
},
{
"name": "seld/jsonlint",
- "version": "1.9.0",
+ "version": "1.10.0",
"source": {
"type": "git",
"url": "https://github.com/Seldaek/jsonlint.git",
- "reference": "4211420d25eba80712bff236a98960ef68b866b7"
+ "reference": "594fd6462aad8ecee0b45ca5045acea4776667f1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/4211420d25eba80712bff236a98960ef68b866b7",
- "reference": "4211420d25eba80712bff236a98960ef68b866b7",
+ "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/594fd6462aad8ecee0b45ca5045acea4776667f1",
+ "reference": "594fd6462aad8ecee0b45ca5045acea4776667f1",
"shasum": ""
},
"require": {
@@ -5515,7 +5516,7 @@
],
"support": {
"issues": "https://github.com/Seldaek/jsonlint/issues",
- "source": "https://github.com/Seldaek/jsonlint/tree/1.9.0"
+ "source": "https://github.com/Seldaek/jsonlint/tree/1.10.0"
},
"funding": [
{
@@ -5527,7 +5528,7 @@
"type": "tidelift"
}
],
- "time": "2022-04-01T13:37:23+00:00"
+ "time": "2023-05-11T13:16:46+00:00"
},
{
"name": "seld/phar-utils",
@@ -5640,32 +5641,32 @@
},
{
"name": "slevomat/coding-standard",
- "version": "8.8.0",
+ "version": "8.13.4",
"source": {
"type": "git",
"url": "https://github.com/slevomat/coding-standard.git",
- "reference": "59e25146a4ef0a7b194c5bc55b32dd414345db89"
+ "reference": "4b2af2fb17773656d02fbfb5d18024ebd19fe322"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/59e25146a4ef0a7b194c5bc55b32dd414345db89",
- "reference": "59e25146a4ef0a7b194c5bc55b32dd414345db89",
+ "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/4b2af2fb17773656d02fbfb5d18024ebd19fe322",
+ "reference": "4b2af2fb17773656d02fbfb5d18024ebd19fe322",
"shasum": ""
},
"require": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0",
"php": "^7.2 || ^8.0",
- "phpstan/phpdoc-parser": ">=1.15.2 <1.16.0",
+ "phpstan/phpdoc-parser": "^1.23.0",
"squizlabs/php_codesniffer": "^3.7.1"
},
"require-dev": {
"phing/phing": "2.17.4",
"php-parallel-lint/php-parallel-lint": "1.3.2",
- "phpstan/phpstan": "1.4.10|1.9.6",
- "phpstan/phpstan-deprecation-rules": "1.1.1",
- "phpstan/phpstan-phpunit": "1.0.0|1.3.3",
- "phpstan/phpstan-strict-rules": "1.4.4",
- "phpunit/phpunit": "7.5.20|8.5.21|9.5.27"
+ "phpstan/phpstan": "1.10.26",
+ "phpstan/phpstan-deprecation-rules": "1.1.3",
+ "phpstan/phpstan-phpunit": "1.3.13",
+ "phpstan/phpstan-strict-rules": "1.5.1",
+ "phpunit/phpunit": "7.5.20|8.5.21|9.6.8|10.2.6"
},
"type": "phpcodesniffer-standard",
"extra": {
@@ -5675,7 +5676,7 @@
},
"autoload": {
"psr-4": {
- "SlevomatCodingStandard\\": "SlevomatCodingStandard"
+ "SlevomatCodingStandard\\": "SlevomatCodingStandard/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -5689,7 +5690,7 @@
],
"support": {
"issues": "https://github.com/slevomat/coding-standard/issues",
- "source": "https://github.com/slevomat/coding-standard/tree/8.8.0"
+ "source": "https://github.com/slevomat/coding-standard/tree/8.13.4"
},
"funding": [
{
@@ -5701,20 +5702,20 @@
"type": "tidelift"
}
],
- "time": "2023-01-09T10:46:13+00:00"
+ "time": "2023-07-25T10:28:55+00:00"
},
{
"name": "squizlabs/php_codesniffer",
- "version": "3.7.1",
+ "version": "3.7.2",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619"
+ "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619",
- "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879",
+ "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879",
"shasum": ""
},
"require": {
@@ -5750,27 +5751,28 @@
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
"phpcs",
- "standards"
+ "standards",
+ "static analysis"
],
"support": {
"issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
"source": "https://github.com/squizlabs/PHP_CodeSniffer",
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
},
- "time": "2022-06-18T07:21:10+00:00"
+ "time": "2023-02-22T23:07:41+00:00"
},
{
"name": "symfony/finder",
- "version": "v6.2.5",
+ "version": "v6.3.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
- "reference": "c90dc446976a612e3312a97a6ec0069ab0c2099c"
+ "reference": "9915db259f67d21eefee768c1abcf1cc61b1fc9e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/c90dc446976a612e3312a97a6ec0069ab0c2099c",
- "reference": "c90dc446976a612e3312a97a6ec0069ab0c2099c",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/9915db259f67d21eefee768c1abcf1cc61b1fc9e",
+ "reference": "9915db259f67d21eefee768c1abcf1cc61b1fc9e",
"shasum": ""
},
"require": {
@@ -5805,7 +5807,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/finder/tree/v6.2.5"
+ "source": "https://github.com/symfony/finder/tree/v6.3.3"
},
"funding": [
{
@@ -5821,7 +5823,7 @@
"type": "tidelift"
}
],
- "time": "2023-01-20T17:45:48+00:00"
+ "time": "2023-07-31T08:31:44+00:00"
},
{
"name": "symfony/polyfill-php73",
@@ -6066,16 +6068,16 @@
},
{
"name": "symfony/process",
- "version": "v6.2.5",
+ "version": "v6.3.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
- "reference": "9ead139f63dfa38c4e4a9049cc64a8b2748c83b7"
+ "reference": "c5ce962db0d9b6e80247ca5eb9af6472bd4d7b5d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/9ead139f63dfa38c4e4a9049cc64a8b2748c83b7",
- "reference": "9ead139f63dfa38c4e4a9049cc64a8b2748c83b7",
+ "url": "https://api.github.com/repos/symfony/process/zipball/c5ce962db0d9b6e80247ca5eb9af6472bd4d7b5d",
+ "reference": "c5ce962db0d9b6e80247ca5eb9af6472bd4d7b5d",
"shasum": ""
},
"require": {
@@ -6107,7 +6109,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/process/tree/v6.2.5"
+ "source": "https://github.com/symfony/process/tree/v6.3.2"
},
"funding": [
{
@@ -6123,42 +6125,38 @@
"type": "tidelift"
}
],
- "time": "2023-01-01T08:38:09+00:00"
+ "time": "2023-07-12T16:00:22+00:00"
},
{
"name": "symfony/var-dumper",
- "version": "v6.2.5",
+ "version": "v6.3.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
- "reference": "44b7b81749fd20c1bdf4946c041050e22bc8da27"
+ "reference": "77fb4f2927f6991a9843633925d111147449ee7a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/44b7b81749fd20c1bdf4946c041050e22bc8da27",
- "reference": "44b7b81749fd20c1bdf4946c041050e22bc8da27",
+ "url": "https://api.github.com/repos/symfony/var-dumper/zipball/77fb4f2927f6991a9843633925d111147449ee7a",
+ "reference": "77fb4f2927f6991a9843633925d111147449ee7a",
"shasum": ""
},
"require": {
"php": ">=8.1",
+ "symfony/deprecation-contracts": "^2.5|^3",
"symfony/polyfill-mbstring": "~1.0"
},
"conflict": {
- "phpunit/phpunit": "<5.4.3",
"symfony/console": "<5.4"
},
"require-dev": {
"ext-iconv": "*",
"symfony/console": "^5.4|^6.0",
+ "symfony/http-kernel": "^5.4|^6.0",
"symfony/process": "^5.4|^6.0",
"symfony/uid": "^5.4|^6.0",
"twig/twig": "^2.13|^3.0.4"
},
- "suggest": {
- "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
- "ext-intl": "To show region name in time zone dump",
- "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script"
- },
"bin": [
"Resources/bin/var-dump-server"
],
@@ -6195,7 +6193,7 @@
"dump"
],
"support": {
- "source": "https://github.com/symfony/var-dumper/tree/v6.2.5"
+ "source": "https://github.com/symfony/var-dumper/tree/v6.3.3"
},
"funding": [
{
@@ -6211,7 +6209,7 @@
"type": "tidelift"
}
],
- "time": "2023-01-20T17:45:48+00:00"
+ "time": "2023-07-31T07:08:24+00:00"
},
{
"name": "theseer/tokenizer",
@@ -6265,16 +6263,16 @@
},
{
"name": "twig/markdown-extra",
- "version": "v3.5.1",
+ "version": "v3.7.0",
"source": {
"type": "git",
"url": "https://github.com/twigphp/markdown-extra.git",
- "reference": "9474c89fd2787187a3809e5e964dfce2395ae5f0"
+ "reference": "8f1179e279cea6ef14066a4560b859df58acd5d8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/twigphp/markdown-extra/zipball/9474c89fd2787187a3809e5e964dfce2395ae5f0",
- "reference": "9474c89fd2787187a3809e5e964dfce2395ae5f0",
+ "url": "https://api.github.com/repos/twigphp/markdown-extra/zipball/8f1179e279cea6ef14066a4560b859df58acd5d8",
+ "reference": "8f1179e279cea6ef14066a4560b859df58acd5d8",
"shasum": ""
},
"require": {
@@ -6289,11 +6287,6 @@
"symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0"
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.5-dev"
- }
- },
"autoload": {
"psr-4": {
"Twig\\Extra\\Markdown\\": ""
@@ -6322,7 +6315,7 @@
"twig"
],
"support": {
- "source": "https://github.com/twigphp/markdown-extra/tree/v3.5.1"
+ "source": "https://github.com/twigphp/markdown-extra/tree/v3.7.0"
},
"funding": [
{
@@ -6334,20 +6327,20 @@
"type": "tidelift"
}
],
- "time": "2023-02-08T07:44:55+00:00"
+ "time": "2023-02-09T06:45:16+00:00"
},
{
"name": "twig/twig",
- "version": "v3.5.1",
+ "version": "v3.7.0",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
- "reference": "a6e0510cc793912b451fd40ab983a1d28f611c15"
+ "reference": "5cf942bbab3df42afa918caeba947f1b690af64b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/twigphp/Twig/zipball/a6e0510cc793912b451fd40ab983a1d28f611c15",
- "reference": "a6e0510cc793912b451fd40ab983a1d28f611c15",
+ "url": "https://api.github.com/repos/twigphp/Twig/zipball/5cf942bbab3df42afa918caeba947f1b690af64b",
+ "reference": "5cf942bbab3df42afa918caeba947f1b690af64b",
"shasum": ""
},
"require": {
@@ -6356,15 +6349,10 @@
"symfony/polyfill-mbstring": "^1.3"
},
"require-dev": {
- "psr/container": "^1.0",
+ "psr/container": "^1.0|^2.0",
"symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0"
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.5-dev"
- }
- },
"autoload": {
"psr-4": {
"Twig\\": "src/"
@@ -6398,7 +6386,7 @@
],
"support": {
"issues": "https://github.com/twigphp/Twig/issues",
- "source": "https://github.com/twigphp/Twig/tree/v3.5.1"
+ "source": "https://github.com/twigphp/Twig/tree/v3.7.0"
},
"funding": [
{
@@ -6410,7 +6398,7 @@
"type": "tidelift"
}
],
- "time": "2023-02-08T07:49:20+00:00"
+ "time": "2023-07-26T07:16:09+00:00"
}
],
"aliases": [],
@@ -6424,5 +6412,5 @@
"php": ">=8.0"
},
"platform-dev": [],
- "plugin-api-version": "2.1.0"
+ "plugin-api-version": "2.3.0"
}
diff --git a/app/vendor/bin/composer b/app/vendor/bin/composer
deleted file mode 120000
index f43551575..000000000
--- a/app/vendor/bin/composer
+++ /dev/null
@@ -1 +0,0 @@
-../composer/composer/bin/composer
\ No newline at end of file
diff --git a/app/vendor/bin/composer b/app/vendor/bin/composer
new file mode 100755
index 000000000..b8ca913e6
--- /dev/null
+++ b/app/vendor/bin/composer
@@ -0,0 +1,120 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = $this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ include("phpvfscomposer://" . __DIR__ . '/..'.'/composer/composer/bin/composer');
+ exit(0);
+ }
+}
+
+include __DIR__ . '/..'.'/composer/composer/bin/composer';
diff --git a/app/vendor/bin/doctrine-dbal b/app/vendor/bin/doctrine-dbal
deleted file mode 120000
index 58a8a89c2..000000000
--- a/app/vendor/bin/doctrine-dbal
+++ /dev/null
@@ -1 +0,0 @@
-../doctrine/dbal/bin/doctrine-dbal
\ No newline at end of file
diff --git a/app/vendor/bin/doctrine-dbal b/app/vendor/bin/doctrine-dbal
new file mode 100755
index 000000000..e86bf8dcc
--- /dev/null
+++ b/app/vendor/bin/doctrine-dbal
@@ -0,0 +1,120 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = $this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ include("phpvfscomposer://" . __DIR__ . '/..'.'/doctrine/dbal/bin/doctrine-dbal');
+ exit(0);
+ }
+}
+
+include __DIR__ . '/..'.'/doctrine/dbal/bin/doctrine-dbal';
diff --git a/app/vendor/bin/jsonlint b/app/vendor/bin/jsonlint
index 513f1c973..b8170cf4d 100755
--- a/app/vendor/bin/jsonlint
+++ b/app/vendor/bin/jsonlint
@@ -108,7 +108,10 @@ if (PHP_VERSION_ID < 80000) {
}
}
- if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) {
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
include("phpvfscomposer://" . __DIR__ . '/..'.'/seld/jsonlint/bin/jsonlint');
exit(0);
}
diff --git a/app/vendor/bin/phinx b/app/vendor/bin/phinx
deleted file mode 120000
index 8b2b0f455..000000000
--- a/app/vendor/bin/phinx
+++ /dev/null
@@ -1 +0,0 @@
-../robmorgan/phinx/bin/phinx
\ No newline at end of file
diff --git a/app/vendor/bin/phinx b/app/vendor/bin/phinx
new file mode 100755
index 000000000..9942549c0
--- /dev/null
+++ b/app/vendor/bin/phinx
@@ -0,0 +1,120 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = $this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ include("phpvfscomposer://" . __DIR__ . '/..'.'/robmorgan/phinx/bin/phinx');
+ exit(0);
+ }
+}
+
+include __DIR__ . '/..'.'/robmorgan/phinx/bin/phinx';
diff --git a/app/vendor/bin/php-parse b/app/vendor/bin/php-parse
deleted file mode 120000
index 062d66a3e..000000000
--- a/app/vendor/bin/php-parse
+++ /dev/null
@@ -1 +0,0 @@
-../nikic/php-parser/bin/php-parse
\ No newline at end of file
diff --git a/app/vendor/bin/php-parse b/app/vendor/bin/php-parse
new file mode 100755
index 000000000..1bd2c838c
--- /dev/null
+++ b/app/vendor/bin/php-parse
@@ -0,0 +1,120 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = $this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ include("phpvfscomposer://" . __DIR__ . '/..'.'/nikic/php-parser/bin/php-parse');
+ exit(0);
+ }
+}
+
+include __DIR__ . '/..'.'/nikic/php-parser/bin/php-parse';
diff --git a/app/vendor/bin/phpcbf b/app/vendor/bin/phpcbf
deleted file mode 120000
index bdf04fbca..000000000
--- a/app/vendor/bin/phpcbf
+++ /dev/null
@@ -1 +0,0 @@
-../squizlabs/php_codesniffer/bin/phpcbf
\ No newline at end of file
diff --git a/app/vendor/bin/phpcbf b/app/vendor/bin/phpcbf
new file mode 100755
index 000000000..0b622008f
--- /dev/null
+++ b/app/vendor/bin/phpcbf
@@ -0,0 +1,120 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = $this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ include("phpvfscomposer://" . __DIR__ . '/..'.'/squizlabs/php_codesniffer/bin/phpcbf');
+ exit(0);
+ }
+}
+
+include __DIR__ . '/..'.'/squizlabs/php_codesniffer/bin/phpcbf';
diff --git a/app/vendor/bin/phpcs b/app/vendor/bin/phpcs
deleted file mode 120000
index 9481d68a4..000000000
--- a/app/vendor/bin/phpcs
+++ /dev/null
@@ -1 +0,0 @@
-../squizlabs/php_codesniffer/bin/phpcs
\ No newline at end of file
diff --git a/app/vendor/bin/phpcs b/app/vendor/bin/phpcs
new file mode 100755
index 000000000..9eb8455a8
--- /dev/null
+++ b/app/vendor/bin/phpcs
@@ -0,0 +1,120 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = $this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ include("phpvfscomposer://" . __DIR__ . '/..'.'/squizlabs/php_codesniffer/bin/phpcs');
+ exit(0);
+ }
+}
+
+include __DIR__ . '/..'.'/squizlabs/php_codesniffer/bin/phpcs';
diff --git a/app/vendor/bin/phpunit b/app/vendor/bin/phpunit
deleted file mode 120000
index 2c4893031..000000000
--- a/app/vendor/bin/phpunit
+++ /dev/null
@@ -1 +0,0 @@
-../phpunit/phpunit/phpunit
\ No newline at end of file
diff --git a/app/vendor/bin/phpunit b/app/vendor/bin/phpunit
new file mode 100755
index 000000000..e92cddc50
--- /dev/null
+++ b/app/vendor/bin/phpunit
@@ -0,0 +1,123 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = 'phpvfscomposer://'.$this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+ $data = str_replace('__DIR__', var_export(dirname($this->realpath), true), $data);
+ $data = str_replace('__FILE__', var_export($this->realpath, true), $data);
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ include("phpvfscomposer://" . __DIR__ . '/..'.'/phpunit/phpunit/phpunit');
+ exit(0);
+ }
+}
+
+include __DIR__ . '/..'.'/phpunit/phpunit/phpunit';
diff --git a/app/vendor/bin/psysh b/app/vendor/bin/psysh
deleted file mode 120000
index 3c06b1ae9..000000000
--- a/app/vendor/bin/psysh
+++ /dev/null
@@ -1 +0,0 @@
-../psy/psysh/bin/psysh
\ No newline at end of file
diff --git a/app/vendor/bin/psysh b/app/vendor/bin/psysh
new file mode 100755
index 000000000..ea7f565c1
--- /dev/null
+++ b/app/vendor/bin/psysh
@@ -0,0 +1,120 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = $this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ include("phpvfscomposer://" . __DIR__ . '/..'.'/psy/psysh/bin/psysh');
+ exit(0);
+ }
+}
+
+include __DIR__ . '/..'.'/psy/psysh/bin/psysh';
diff --git a/app/vendor/bin/var-dump-server b/app/vendor/bin/var-dump-server
deleted file mode 120000
index 6bd4e93db..000000000
--- a/app/vendor/bin/var-dump-server
+++ /dev/null
@@ -1 +0,0 @@
-../symfony/var-dumper/Resources/bin/var-dump-server
\ No newline at end of file
diff --git a/app/vendor/bin/var-dump-server b/app/vendor/bin/var-dump-server
new file mode 100755
index 000000000..c52c77272
--- /dev/null
+++ b/app/vendor/bin/var-dump-server
@@ -0,0 +1,120 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = $this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ include("phpvfscomposer://" . __DIR__ . '/..'.'/symfony/var-dumper/Resources/bin/var-dump-server');
+ exit(0);
+ }
+}
+
+include __DIR__ . '/..'.'/symfony/var-dumper/Resources/bin/var-dump-server';
diff --git a/app/vendor/cakephp/bake/LICENSE.txt b/app/vendor/cakephp/bake/LICENSE.txt
index 0a0a98c8e..7fd9d1f4b 100644
--- a/app/vendor/cakephp/bake/LICENSE.txt
+++ b/app/vendor/cakephp/bake/LICENSE.txt
@@ -1,6 +1,6 @@
The MIT License
-CakePHP(tm) : The Rapid Development PHP Framework (http://cakephp.org)
+CakePHP(tm) : The Rapid Development PHP Framework (https://cakephp.org)
Copyright (c) 2005-present, Cake Software Foundation, Inc.
Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/app/vendor/cakephp/bake/README.md b/app/vendor/cakephp/bake/README.md
index bd99b84b7..3cc152bc7 100644
--- a/app/vendor/cakephp/bake/README.md
+++ b/app/vendor/cakephp/bake/README.md
@@ -10,7 +10,7 @@ suite of CLI tools, you can quickly and easily generate code for your applicatio
## Installation
-You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).
+You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).
The recommended way to install composer packages is:
diff --git a/app/vendor/cakephp/bake/composer.json b/app/vendor/cakephp/bake/composer.json
index 58ad76d07..679346281 100644
--- a/app/vendor/cakephp/bake/composer.json
+++ b/app/vendor/cakephp/bake/composer.json
@@ -50,9 +50,9 @@
"@test",
"@cs-check"
],
- "cs-check": "phpcs --parallel=16 -p src/ tests/",
- "cs-fix": "phpcbf --parallel=16 -p src/ tests/",
- "stan": "phpstan analyse src/ && psalm.phar",
+ "cs-check": "phpcs --parallel=16",
+ "cs-fix": "phpcbf --parallel=16",
+ "stan": "phpstan analyse && psalm.phar",
"stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^1.7 psalm/phar:~4.27.0 && mv composer.backup composer.json",
"test": "phpunit",
"test-coverage": "phpunit --coverage-clover=clover.xml"
diff --git a/app/vendor/cakephp/bake/docs.Dockerfile b/app/vendor/cakephp/bake/docs.Dockerfile
index 1f7afabdc..4f3ca473c 100644
--- a/app/vendor/cakephp/bake/docs.Dockerfile
+++ b/app/vendor/cakephp/bake/docs.Dockerfile
@@ -1,5 +1,5 @@
# Generate the HTML output.
-FROM markstory/cakephp-docs-builder as builder
+FROM ghcr.io/cakephp/docs-builder as builder
# Copy entire repo in with .git so we can build all versions in one image.
COPY docs /data/docs
@@ -8,7 +8,7 @@ RUN cd /data/docs-builder \
&& make website LANGS="en es fr ja pt ru" SOURCE=/data/docs DEST=/data/website/
# Build a small nginx container with just the static site in it.
-FROM markstory/cakephp-docs-builder:runtime as runtime
+FROM ghcr.io/cakephp/docs-builder:runtime as runtime
# Configure search index script
ENV LANGS="en es fr ja pt ru"
diff --git a/app/vendor/cakephp/bake/phpcs.xml.dist b/app/vendor/cakephp/bake/phpcs.xml
similarity index 52%
rename from app/vendor/cakephp/bake/phpcs.xml.dist
rename to app/vendor/cakephp/bake/phpcs.xml
index ce02df237..f52106709 100644
--- a/app/vendor/cakephp/bake/phpcs.xml.dist
+++ b/app/vendor/cakephp/bake/phpcs.xml
@@ -1,8 +1,14 @@
+
+
+ src/
+ tests/
*/comparisons/*
+ /tests/test_app/tests/
+ /tests/test_app/Plugin/TestBake/
diff --git a/app/vendor/cakephp/bake/src/CodeGen/ClassBuilder.php b/app/vendor/cakephp/bake/src/CodeGen/ClassBuilder.php
index de9482835..b543127c0 100644
--- a/app/vendor/cakephp/bake/src/CodeGen/ClassBuilder.php
+++ b/app/vendor/cakephp/bake/src/CodeGen/ClassBuilder.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.8.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\CodeGen;
diff --git a/app/vendor/cakephp/bake/src/CodeGen/CodeParser.php b/app/vendor/cakephp/bake/src/CodeGen/CodeParser.php
index 6944c1b1d..2293fb021 100644
--- a/app/vendor/cakephp/bake/src/CodeGen/CodeParser.php
+++ b/app/vendor/cakephp/bake/src/CodeGen/CodeParser.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.8.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\CodeGen;
diff --git a/app/vendor/cakephp/bake/src/CodeGen/FileBuilder.php b/app/vendor/cakephp/bake/src/CodeGen/FileBuilder.php
index d3cffa2ce..74c77a7aa 100644
--- a/app/vendor/cakephp/bake/src/CodeGen/FileBuilder.php
+++ b/app/vendor/cakephp/bake/src/CodeGen/FileBuilder.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.8.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\CodeGen;
diff --git a/app/vendor/cakephp/bake/src/CodeGen/ImportHelper.php b/app/vendor/cakephp/bake/src/CodeGen/ImportHelper.php
index 01b60d349..576b42c7b 100644
--- a/app/vendor/cakephp/bake/src/CodeGen/ImportHelper.php
+++ b/app/vendor/cakephp/bake/src/CodeGen/ImportHelper.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.8.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\CodeGen;
diff --git a/app/vendor/cakephp/bake/src/CodeGen/ParseException.php b/app/vendor/cakephp/bake/src/CodeGen/ParseException.php
index b910faae1..83b374478 100644
--- a/app/vendor/cakephp/bake/src/CodeGen/ParseException.php
+++ b/app/vendor/cakephp/bake/src/CodeGen/ParseException.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.8.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\CodeGen;
diff --git a/app/vendor/cakephp/bake/src/CodeGen/ParsedClass.php b/app/vendor/cakephp/bake/src/CodeGen/ParsedClass.php
index 5814e32a7..b7bda0737 100644
--- a/app/vendor/cakephp/bake/src/CodeGen/ParsedClass.php
+++ b/app/vendor/cakephp/bake/src/CodeGen/ParsedClass.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.8.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\CodeGen;
diff --git a/app/vendor/cakephp/bake/src/CodeGen/ParsedFile.php b/app/vendor/cakephp/bake/src/CodeGen/ParsedFile.php
index 9a096f27e..f00521710 100644
--- a/app/vendor/cakephp/bake/src/CodeGen/ParsedFile.php
+++ b/app/vendor/cakephp/bake/src/CodeGen/ParsedFile.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.8.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\CodeGen;
diff --git a/app/vendor/cakephp/bake/src/Command/AllCommand.php b/app/vendor/cakephp/bake/src/Command/AllCommand.php
index a6a3f6113..785f46534 100644
--- a/app/vendor/cakephp/bake/src/Command/AllCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/AllCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/BakeCommand.php b/app/vendor/cakephp/bake/src/Command/BakeCommand.php
index 903192c0e..06e84064a 100644
--- a/app/vendor/cakephp/bake/src/Command/BakeCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/BakeCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/BehaviorCommand.php b/app/vendor/cakephp/bake/src/Command/BehaviorCommand.php
index e5b5e852e..c7af462f9 100644
--- a/app/vendor/cakephp/bake/src/Command/BehaviorCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/BehaviorCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/CellCommand.php b/app/vendor/cakephp/bake/src/Command/CellCommand.php
index 989a7ddb7..b77be780f 100644
--- a/app/vendor/cakephp/bake/src/Command/CellCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/CellCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/CommandCommand.php b/app/vendor/cakephp/bake/src/Command/CommandCommand.php
index dfca1a419..ea5cabd8e 100644
--- a/app/vendor/cakephp/bake/src/Command/CommandCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/CommandCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 1.7.4
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/CommandHelperCommand.php b/app/vendor/cakephp/bake/src/Command/CommandHelperCommand.php
index fba31ed10..84f8d63bd 100644
--- a/app/vendor/cakephp/bake/src/Command/CommandHelperCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/CommandHelperCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.6.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/ComponentCommand.php b/app/vendor/cakephp/bake/src/Command/ComponentCommand.php
index c98c15fd2..452800fde 100644
--- a/app/vendor/cakephp/bake/src/Command/ComponentCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/ComponentCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/ControllerAllCommand.php b/app/vendor/cakephp/bake/src/Command/ControllerAllCommand.php
index cea1c95ec..b482fcce6 100644
--- a/app/vendor/cakephp/bake/src/Command/ControllerAllCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/ControllerAllCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/ControllerCommand.php b/app/vendor/cakephp/bake/src/Command/ControllerCommand.php
index 954fd3a73..2b4047f70 100644
--- a/app/vendor/cakephp/bake/src/Command/ControllerCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/ControllerCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/EntryCommand.php b/app/vendor/cakephp/bake/src/Command/EntryCommand.php
index ba7b51558..c549880e9 100644
--- a/app/vendor/cakephp/bake/src/Command/EntryCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/EntryCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/FixtureAllCommand.php b/app/vendor/cakephp/bake/src/Command/FixtureAllCommand.php
index e6268fc70..9dff89cd0 100644
--- a/app/vendor/cakephp/bake/src/Command/FixtureAllCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/FixtureAllCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/FixtureCommand.php b/app/vendor/cakephp/bake/src/Command/FixtureCommand.php
index 5353e0c52..402b092e8 100644
--- a/app/vendor/cakephp/bake/src/Command/FixtureCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/FixtureCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/FormCommand.php b/app/vendor/cakephp/bake/src/Command/FormCommand.php
index f84572bad..f36229891 100644
--- a/app/vendor/cakephp/bake/src/Command/FormCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/FormCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 1.0.9
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/HelperCommand.php b/app/vendor/cakephp/bake/src/Command/HelperCommand.php
index 2b364726d..82205f5ab 100644
--- a/app/vendor/cakephp/bake/src/Command/HelperCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/HelperCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/MailerCommand.php b/app/vendor/cakephp/bake/src/Command/MailerCommand.php
index 7ae57c517..b96d7337e 100644
--- a/app/vendor/cakephp/bake/src/Command/MailerCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/MailerCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 1.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/MiddlewareCommand.php b/app/vendor/cakephp/bake/src/Command/MiddlewareCommand.php
index 97fdee7d6..61b3a0c41 100644
--- a/app/vendor/cakephp/bake/src/Command/MiddlewareCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/MiddlewareCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 1.3.6
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/ModelAllCommand.php b/app/vendor/cakephp/bake/src/Command/ModelAllCommand.php
index 74180239e..8b2eaf27f 100644
--- a/app/vendor/cakephp/bake/src/Command/ModelAllCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/ModelAllCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/ModelCommand.php b/app/vendor/cakephp/bake/src/Command/ModelCommand.php
index 0e7c38603..fc9b95ec7 100644
--- a/app/vendor/cakephp/bake/src/Command/ModelCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/ModelCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
@@ -233,7 +233,7 @@ public function getAssociations(Table $table, Arguments $args, ConsoleIo $io): a
];
$primary = $table->getPrimaryKey();
- $associations = $this->findBelongsTo($table, $associations);
+ $associations = $this->findBelongsTo($table, $associations, $args);
if (is_array($primary) && count($primary) > 1) {
$io->warning(
@@ -329,9 +329,10 @@ public function getAssociationInfo(Table $table): array
*
* @param \Cake\ORM\Table $model Database\Table instance of table being generated.
* @param array $associations Array of in progress associations
+ * @param \Cake\Console\Arguments|null $args CLI arguments
* @return array Associations with belongsTo added in.
*/
- public function findBelongsTo(Table $model, array $associations): array
+ public function findBelongsTo(Table $model, array $associations, ?Arguments $args = null): array
{
$schema = $model->getSchema();
foreach ($schema->columns() as $fieldName) {
@@ -362,11 +363,13 @@ public function findBelongsTo(Table $model, array $associations): array
get_class($associationTable) === Table::class &&
!in_array(Inflector::tableize($tmpModelName), $tables, true)
) {
+ $allowAliasRelations = $args && $args->getOption('skip-relation-check');
$found = $this->findTableReferencedBy($schema, $fieldName);
- if (!$found) {
+ if ($found) {
+ $tmpModelName = Inflector::camelize($found);
+ } elseif (!$allowAliasRelations) {
continue;
}
- $tmpModelName = Inflector::camelize($found);
}
$assoc = [
'alias' => $tmpModelName,
@@ -1319,6 +1322,10 @@ public function buildOptionParser(ConsoleOptionParser $parser): ConsoleOptionPar
])->addOption('no-fixture', [
'boolean' => true,
'help' => 'Do not generate a test fixture skeleton.',
+ ])->addOption('skip-relation-check', [
+ 'boolean' => true,
+ 'help' => 'Generate relations for all "example_id" fields'
+ . ' without checking the database if a table "examples" exists.',
])->setEpilog(
'Omitting all arguments and options will list the table names you can generate models for.'
);
diff --git a/app/vendor/cakephp/bake/src/Command/PluginCommand.php b/app/vendor/cakephp/bake/src/Command/PluginCommand.php
index aa9f8103e..992ba2ee9 100644
--- a/app/vendor/cakephp/bake/src/Command/PluginCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/PluginCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
@@ -383,7 +383,7 @@ public function buildOptionParser(ConsoleOptionParser $parser): ConsoleOptionPar
])->addOption('theme', [
'short' => 't',
'help' => 'The theme to use when baking code.',
- 'default' => Configure::read('Bake.theme') ?? '',
+ 'default' => Configure::read('Bake.theme') ?: null,
'choices' => $this->_getBakeThemes(),
]);
diff --git a/app/vendor/cakephp/bake/src/Command/ShellHelperCommand.php b/app/vendor/cakephp/bake/src/Command/ShellHelperCommand.php
index 19f8d5d3f..55643663d 100644
--- a/app/vendor/cakephp/bake/src/Command/ShellHelperCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/ShellHelperCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 1.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/SimpleBakeCommand.php b/app/vendor/cakephp/bake/src/Command/SimpleBakeCommand.php
index 8e114c149..c21dcef78 100644
--- a/app/vendor/cakephp/bake/src/Command/SimpleBakeCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/SimpleBakeCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/TemplateAllCommand.php b/app/vendor/cakephp/bake/src/Command/TemplateAllCommand.php
index 9d2aae179..dd16f13ad 100644
--- a/app/vendor/cakephp/bake/src/Command/TemplateAllCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/TemplateAllCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/TemplateCommand.php b/app/vendor/cakephp/bake/src/Command/TemplateCommand.php
index 8a4e3de0c..57d9372da 100644
--- a/app/vendor/cakephp/bake/src/Command/TemplateCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/TemplateCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
diff --git a/app/vendor/cakephp/bake/src/Command/TestCommand.php b/app/vendor/cakephp/bake/src/Command/TestCommand.php
index 7df61a610..9fe9cd91f 100644
--- a/app/vendor/cakephp/bake/src/Command/TestCommand.php
+++ b/app/vendor/cakephp/bake/src/Command/TestCommand.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Command;
@@ -57,6 +57,7 @@ class TestCommand extends BakeCommand
'Mailer' => 'Mailer',
'Command' => 'Command',
'CommandHelper' => 'Command\Helper',
+ 'Middleware' => 'Middleware',
];
/**
@@ -79,6 +80,7 @@ class TestCommand extends BakeCommand
'Mailer' => 'Mailer',
'Command' => 'Command',
'CommandHelper' => 'Helper',
+ 'Middleware' => 'Middleware',
];
/**
diff --git a/app/vendor/cakephp/bake/src/Plugin.php b/app/vendor/cakephp/bake/src/Plugin.php
index f1a96a02f..ec8703b03 100644
--- a/app/vendor/cakephp/bake/src/Plugin.php
+++ b/app/vendor/cakephp/bake/src/Plugin.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 1.7.2
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake;
diff --git a/app/vendor/cakephp/bake/src/Shell/Task/BakeTask.php b/app/vendor/cakephp/bake/src/Shell/Task/BakeTask.php
index b4191cc83..8d2a4b909 100644
--- a/app/vendor/cakephp/bake/src/Shell/Task/BakeTask.php
+++ b/app/vendor/cakephp/bake/src/Shell/Task/BakeTask.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Shell\Task;
diff --git a/app/vendor/cakephp/bake/src/Shell/Task/SimpleBakeTask.php b/app/vendor/cakephp/bake/src/Shell/Task/SimpleBakeTask.php
index a42c94cc5..efadac3cb 100644
--- a/app/vendor/cakephp/bake/src/Shell/Task/SimpleBakeTask.php
+++ b/app/vendor/cakephp/bake/src/Shell/Task/SimpleBakeTask.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Shell\Task;
diff --git a/app/vendor/cakephp/bake/src/Utility/CommonOptionsTrait.php b/app/vendor/cakephp/bake/src/Utility/CommonOptionsTrait.php
index 4d4b080ad..07647b4e6 100644
--- a/app/vendor/cakephp/bake/src/Utility/CommonOptionsTrait.php
+++ b/app/vendor/cakephp/bake/src/Utility/CommonOptionsTrait.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 1.4.3
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Utility;
diff --git a/app/vendor/cakephp/bake/src/Utility/Model/AssociationFilter.php b/app/vendor/cakephp/bake/src/Utility/Model/AssociationFilter.php
index 44d395f5b..643d68b62 100644
--- a/app/vendor/cakephp/bake/src/Utility/Model/AssociationFilter.php
+++ b/app/vendor/cakephp/bake/src/Utility/Model/AssociationFilter.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Utility\Model;
diff --git a/app/vendor/cakephp/bake/src/Utility/Process.php b/app/vendor/cakephp/bake/src/Utility/Process.php
index 897ee007c..974e0ea4a 100644
--- a/app/vendor/cakephp/bake/src/Utility/Process.php
+++ b/app/vendor/cakephp/bake/src/Utility/Process.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Utility;
diff --git a/app/vendor/cakephp/bake/src/Utility/SubsetSchemaCollection.php b/app/vendor/cakephp/bake/src/Utility/SubsetSchemaCollection.php
index 790219442..f05c13a10 100644
--- a/app/vendor/cakephp/bake/src/Utility/SubsetSchemaCollection.php
+++ b/app/vendor/cakephp/bake/src/Utility/SubsetSchemaCollection.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Utility;
diff --git a/app/vendor/cakephp/bake/src/Utility/TableScanner.php b/app/vendor/cakephp/bake/src/Utility/TableScanner.php
index a729698d3..2b327c3f6 100644
--- a/app/vendor/cakephp/bake/src/Utility/TableScanner.php
+++ b/app/vendor/cakephp/bake/src/Utility/TableScanner.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Utility;
diff --git a/app/vendor/cakephp/bake/src/Utility/TemplateRenderer.php b/app/vendor/cakephp/bake/src/Utility/TemplateRenderer.php
index 10abc01ef..027934b89 100644
--- a/app/vendor/cakephp/bake/src/Utility/TemplateRenderer.php
+++ b/app/vendor/cakephp/bake/src/Utility/TemplateRenderer.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\Utility;
diff --git a/app/vendor/cakephp/bake/src/View/BakeView.php b/app/vendor/cakephp/bake/src/View/BakeView.php
index 2700cb679..3a3b6df78 100644
--- a/app/vendor/cakephp/bake/src/View/BakeView.php
+++ b/app/vendor/cakephp/bake/src/View/BakeView.php
@@ -2,17 +2,17 @@
declare(strict_types=1);
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 0.1.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Bake\View;
@@ -107,7 +107,7 @@ public function render(?string $template = null, $layout = null): string
*
* @param mixed $subject The object that this event applies to
* ($this by default).
- * @return \Cake\Event\EventInterface
+ * @return \Cake\Event\EventInterface
*/
public function dispatchEvent(string $name, $data = null, $subject = null): EventInterface
{
diff --git a/app/vendor/cakephp/bake/templates/bake/Command/command.twig b/app/vendor/cakephp/bake/templates/bake/Command/command.twig
index 9eeafa29e..ab52d71d6 100644
--- a/app/vendor/cakephp/bake/templates/bake/Command/command.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Command/command.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 1.7.4
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Command/helper.twig b/app/vendor/cakephp/bake/templates/bake/Command/helper.twig
index a35a96b3a..94781585f 100644
--- a/app/vendor/cakephp/bake/templates/bake/Command/helper.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Command/helper.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.6.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Controller/component.twig b/app/vendor/cakephp/bake/templates/bake/Controller/component.twig
index 247ed6fb6..8f4b42bbe 100644
--- a/app/vendor/cakephp/bake/templates/bake/Controller/component.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Controller/component.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Controller/controller.twig b/app/vendor/cakephp/bake/templates/bake/Controller/controller.twig
index c50bb8844..894c2cda9 100644
--- a/app/vendor/cakephp/bake/templates/bake/Controller/controller.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Controller/controller.twig
@@ -4,17 +4,17 @@
*
* Allows templating of Controllers generated from bake.
*
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Form/form.twig b/app/vendor/cakephp/bake/templates/bake/Form/form.twig
index 7992b5f46..5f8c64de6 100644
--- a/app/vendor/cakephp/bake/templates/bake/Form/form.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Form/form.twig
@@ -1,16 +1,16 @@
{#
/**
-* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
-* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
-* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
-* @link http://cakephp.org CakePHP(tm) Project
+* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+* @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
-* @license http://www.opensource.org/licenses/mit-license.php MIT License
+* @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Mailer/mailer.twig b/app/vendor/cakephp/bake/templates/bake/Mailer/mailer.twig
index e5dc1200a..55c01a532 100644
--- a/app/vendor/cakephp/bake/templates/bake/Mailer/mailer.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Mailer/mailer.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Middleware/middleware.twig b/app/vendor/cakephp/bake/templates/bake/Middleware/middleware.twig
index d52e7df9d..366f01be2 100644
--- a/app/vendor/cakephp/bake/templates/bake/Middleware/middleware.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Middleware/middleware.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Model/behavior.twig b/app/vendor/cakephp/bake/templates/bake/Model/behavior.twig
index e60fa2ced..5a40c4a69 100644
--- a/app/vendor/cakephp/bake/templates/bake/Model/behavior.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Model/behavior.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Model/entity.twig b/app/vendor/cakephp/bake/templates/bake/Model/entity.twig
index 073ae8921..68d599731 100644
--- a/app/vendor/cakephp/bake/templates/bake/Model/entity.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Model/entity.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{% set propertyHintMap = DocBlock.buildEntityPropertyHintTypeMap(propertySchema ?: []) %}
diff --git a/app/vendor/cakephp/bake/templates/bake/Model/table.twig b/app/vendor/cakephp/bake/templates/bake/Model/table.twig
index f64a0c04c..7c213e0dc 100644
--- a/app/vendor/cakephp/bake/templates/bake/Model/table.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Model/table.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{% set annotations = DocBlock.buildTableAnnotations(associations, associationInfo, behaviors, entity, namespace) %}
diff --git a/app/vendor/cakephp/bake/templates/bake/Plugin/README.md.twig b/app/vendor/cakephp/bake/templates/bake/Plugin/README.md.twig
index 0763927b5..70db4b70b 100644
--- a/app/vendor/cakephp/bake/templates/bake/Plugin/README.md.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Plugin/README.md.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
# {{ plugin }} plugin for CakePHP
diff --git a/app/vendor/cakephp/bake/templates/bake/Plugin/composer.json.twig b/app/vendor/cakephp/bake/templates/bake/Plugin/composer.json.twig
index eebe5dc8e..75e0699f3 100644
--- a/app/vendor/cakephp/bake/templates/bake/Plugin/composer.json.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Plugin/composer.json.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{% set namespace = namespace|replace({'\\': '\\\\'}) %}
diff --git a/app/vendor/cakephp/bake/templates/bake/Plugin/phpunit.xml.dist.twig b/app/vendor/cakephp/bake/templates/bake/Plugin/phpunit.xml.dist.twig
index a9f755639..7a6f6e717 100644
--- a/app/vendor/cakephp/bake/templates/bake/Plugin/phpunit.xml.dist.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Plugin/phpunit.xml.dist.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
diff --git a/app/vendor/cakephp/bake/templates/bake/Plugin/src/Controller/AppController.php.twig b/app/vendor/cakephp/bake/templates/bake/Plugin/src/Controller/AppController.php.twig
index c03c62bb0..398ac38c0 100644
--- a/app/vendor/cakephp/bake/templates/bake/Plugin/src/Controller/AppController.php.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Plugin/src/Controller/AppController.php.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Plugin/src/Plugin.php.twig b/app/vendor/cakephp/bake/templates/bake/Plugin/src/Plugin.php.twig
index 93d738fd4..a7d1575ac 100644
--- a/app/vendor/cakephp/bake/templates/bake/Plugin/src/Plugin.php.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Plugin/src/Plugin.php.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 1.7.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Plugin/tests/bootstrap.php.twig b/app/vendor/cakephp/bake/templates/bake/Plugin/tests/bootstrap.php.twig
index bf80eb9a3..7604c2906 100644
--- a/app/vendor/cakephp/bake/templates/bake/Plugin/tests/bootstrap.php.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Plugin/tests/bootstrap.php.twig
@@ -2,17 +2,17 @@
/**
* Tests bootstrap file
*
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header',{namespace: null}) }}
diff --git a/app/vendor/cakephp/bake/templates/bake/Plugin/webroot/.gitkeep.twig b/app/vendor/cakephp/bake/templates/bake/Plugin/webroot/.gitkeep.twig
index e48dbb3c0..1e0f7064d 100644
--- a/app/vendor/cakephp/bake/templates/bake/Plugin/webroot/.gitkeep.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Plugin/webroot/.gitkeep.twig
@@ -1,15 +1,15 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
\ No newline at end of file
diff --git a/app/vendor/cakephp/bake/templates/bake/Shell/helper.twig b/app/vendor/cakephp/bake/templates/bake/Shell/helper.twig
index d52832442..799299feb 100644
--- a/app/vendor/cakephp/bake/templates/bake/Shell/helper.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Shell/helper.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
{{ element('Bake.file_header', {
diff --git a/app/vendor/cakephp/bake/templates/bake/Template/add.twig b/app/vendor/cakephp/bake/templates/bake/Template/add.twig
index 068f8d44c..c21d7c1d2 100644
--- a/app/vendor/cakephp/bake/templates/bake/Template/add.twig
+++ b/app/vendor/cakephp/bake/templates/bake/Template/add.twig
@@ -1,16 +1,16 @@
{#
/**
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
* @since 2.0.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
#}
- * @license http://spdx.org/licenses/MIT MIT License
+ * @license https://spdx.org/licenses/MIT MIT License
* @link https://github.com/escapestudios/Symfony2-coding-standard
*/
class BlankLineBeforeReturnSniff implements Sniff
diff --git a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/ClosureDeclarationSniff.php b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/ClosureDeclarationSniff.php
index 4b2a86e05..3756a8712 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/ClosureDeclarationSniff.php
+++ b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/Functions/ClosureDeclarationSniff.php
@@ -10,7 +10,7 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://github.com/cakephp/cakephp-codesniffer
* @since CakePHP CodeSniffer 0.1.28
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePHP\Sniffs\Functions;
diff --git a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidFunctionNameSniff.php b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidFunctionNameSniff.php
index 7212f25d0..777a888bc 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidFunctionNameSniff.php
+++ b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidFunctionNameSniff.php
@@ -10,7 +10,7 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://github.com/cakephp/cakephp-codesniffer
* @since CakePHP CodeSniffer 0.1.1
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
diff --git a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidTraitNameSniff.php b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidTraitNameSniff.php
index 0736d5b70..f3aae2e36 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidTraitNameSniff.php
+++ b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/NamingConventions/ValidTraitNameSniff.php
@@ -10,7 +10,7 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://github.com/cakephp/cakephp-codesniffer
* @since CakePHP CodeSniffer 0.1.10
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
diff --git a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/DisallowShortOpenTagSniff.php b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/DisallowShortOpenTagSniff.php
index f1fbab200..be835fe74 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/DisallowShortOpenTagSniff.php
+++ b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/PHP/DisallowShortOpenTagSniff.php
@@ -10,7 +10,7 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://github.com/cakephp/cakephp-codesniffer
* @since CakePHP CodeSniffer 0.1.14
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePHP\Sniffs\PHP;
diff --git a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/EmptyLinesSniff.php b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/EmptyLinesSniff.php
index e196fd758..7536d233d 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/EmptyLinesSniff.php
+++ b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/EmptyLinesSniff.php
@@ -10,14 +10,14 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://github.com/cakephp/cakephp-codesniffer
* @since CakePHP CodeSniffer 2.4.0
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* Ensures that not more than one blank line occurs
*
* @author Mark Scherer
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePHP\Sniffs\WhiteSpace;
diff --git a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionCallSpacingSniff.php b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionCallSpacingSniff.php
index 1ac02c430..256c6b173 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionCallSpacingSniff.php
+++ b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/FunctionCallSpacingSniff.php
@@ -10,7 +10,7 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://github.com/cakephp/cakephp-codesniffer
* @since CakePHP CodeSniffer 0.1.12
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
diff --git a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/TabAndSpaceSniff.php b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/TabAndSpaceSniff.php
index 6d977d589..c39c9f251 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/TabAndSpaceSniff.php
+++ b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/Sniffs/WhiteSpace/TabAndSpaceSniff.php
@@ -10,7 +10,7 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://github.com/cakephp/cakephp-codesniffer
* @since CakePHP CodeSniffer 0.1.11
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
diff --git a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/ruleset.xml b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/ruleset.xml
index 543481aa8..c5dba1351 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/CakePHP/ruleset.xml
+++ b/app/vendor/cakephp/cakephp-codesniffer/CakePHP/ruleset.xml
@@ -154,9 +154,6 @@
-
-
-
*/config/*
*/templates/*
diff --git a/app/vendor/cakephp/cakephp-codesniffer/composer.json b/app/vendor/cakephp/cakephp-codesniffer/composer.json
index bb1e9380f..4e593b5ee 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/composer.json
+++ b/app/vendor/cakephp/cakephp-codesniffer/composer.json
@@ -19,7 +19,7 @@
},
"require": {
"php": ">=7.2.0",
- "slevomat/coding-standard": "^6.3.6 || ^7.0 || ^8.0",
+ "slevomat/coding-standard": "^7.0 || ^8.0",
"squizlabs/php_codesniffer": "^3.6"
},
"require-dev": {
diff --git a/app/vendor/cakephp/cakephp-codesniffer/docs/README.md b/app/vendor/cakephp/cakephp-codesniffer/docs/README.md
index e5727fe37..225fe6f50 100644
--- a/app/vendor/cakephp/cakephp-codesniffer/docs/README.md
+++ b/app/vendor/cakephp/cakephp-codesniffer/docs/README.md
@@ -1,6 +1,6 @@
# CakePHP ruleset
-The CakePHP standard contains 136 sniffs
+The CakePHP standard contains 135 sniffs
CakePHP (19 sniffs)
-------------------
@@ -52,10 +52,9 @@ Generic (25 sniffs)
- Generic.WhiteSpace.IncrementDecrementSpacing
- Generic.WhiteSpace.ScopeIndent
-PEAR (2 sniffs)
+PEAR (1 sniff)
---------------
- PEAR.Functions.ValidDefaultValue
-- PEAR.NamingConventions.ValidFunctionName
PSR1 (3 sniffs)
---------------
@@ -63,11 +62,12 @@ PSR1 (3 sniffs)
- PSR1.Files.SideEffects
- PSR1.Methods.CamelCapsMethodName
-PSR12 (16 sniffs)
+PSR12 (17 sniffs)
-----------------
- PSR12.Classes.AnonClassDeclaration
- PSR12.Classes.ClassInstantiation
- PSR12.Classes.ClosingBrace
+- PSR12.Classes.OpeningBraceSpace
- PSR12.ControlStructures.BooleanOperatorPlacement
- PSR12.ControlStructures.ControlStructureSpacing
- PSR12.Files.DeclareStatement
@@ -129,7 +129,7 @@ SlevomatCodingStandard (32 sniffs)
- SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing
- SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable
-Squiz (29 sniffs)
+Squiz (28 sniffs)
-----------------
- Squiz.Arrays.ArrayBracketSpacing
- Squiz.Classes.ClassFileName
@@ -144,7 +144,6 @@ Squiz (29 sniffs)
- Squiz.Functions.FunctionDeclarationArgumentSpacing
- Squiz.Functions.LowercaseFunctionKeywords
- Squiz.Functions.MultiLineFunctionDeclaration
-- Squiz.NamingConventions.ValidFunctionName
- Squiz.Operators.ValidLogicalOperators
- Squiz.PHP.DisallowSizeFunctionsInLoops
- Squiz.PHP.Eval
diff --git a/app/vendor/cakephp/cakephp/VERSION.txt b/app/vendor/cakephp/cakephp/VERSION.txt
index 320e64024..d0e169172 100644
--- a/app/vendor/cakephp/cakephp/VERSION.txt
+++ b/app/vendor/cakephp/cakephp/VERSION.txt
@@ -16,4 +16,4 @@
// @license https://opensource.org/licenses/mit-license.php MIT License
// +--------------------------------------------------------------------------------------------+ //
////////////////////////////////////////////////////////////////////////////////////////////////////
-4.4.11
+4.4.16
diff --git a/app/vendor/cakephp/cakephp/composer.json b/app/vendor/cakephp/cakephp/composer.json
index 39f7d6672..278f11070 100644
--- a/app/vendor/cakephp/cakephp/composer.json
+++ b/app/vendor/cakephp/cakephp/composer.json
@@ -64,9 +64,17 @@
"suggest": {
"ext-curl": "To enable more efficient network calls in Http\\Client.",
"ext-openssl": "To use Security::encrypt() or have secure CSRF token generation.",
- "lib-ICU": "The intl PHP library, to use Text::transliterate() or Text::slug()",
+ "lib-ICU": "To use locale-aware features in the I18n and Database packages",
"paragonie/csp-builder": "CSP builder, to use the CSP Middleware"
},
+ "provide": {
+ "psr/container-implementation": "^1.0 || ^2.0",
+ "psr/http-client-implementation": "^1.0",
+ "psr/http-server-handler-implementation": "^1.0",
+ "psr/http-server-middleware-implementation": "^1.0",
+ "psr/log-implementation": "^1.0 || ^2.0",
+ "psr/simple-cache-implementation": "^1.0 || ^2.0"
+ },
"config": {
"process-timeout": 900,
"sort-packages": true,
diff --git a/app/vendor/cakephp/cakephp/src/Cache/composer.json b/app/vendor/cakephp/cakephp/src/Cache/composer.json
index 96aec1982..7f20c1e9a 100644
--- a/app/vendor/cakephp/cakephp/src/Cache/composer.json
+++ b/app/vendor/cakephp/cakephp/src/Cache/composer.json
@@ -27,7 +27,7 @@
"psr/simple-cache": "^1.0 || ^2.0"
},
"provide": {
- "psr/simple-cache-implementation": "^1.0.0"
+ "psr/simple-cache-implementation": "^1.0 || ^2.0"
},
"autoload": {
"psr-4": {
diff --git a/app/vendor/cakephp/cakephp/src/Collection/CollectionInterface.php b/app/vendor/cakephp/cakephp/src/Collection/CollectionInterface.php
index 12cbb1c3c..7e50cfced 100644
--- a/app/vendor/cakephp/cakephp/src/Collection/CollectionInterface.php
+++ b/app/vendor/cakephp/cakephp/src/Collection/CollectionInterface.php
@@ -250,8 +250,7 @@ public function extract($path): CollectionInterface;
* ```
*
* @param callable|string $path The column name to use for sorting or callback that returns the value.
- * @param int $sort The sort type, one of SORT_STRING
- * SORT_NUMERIC or SORT_NATURAL
+ * @param int $sort The sort type, one of SORT_STRING, SORT_NUMERIC or SORT_NATURAL
* @see \Cake\Collection\CollectionInterface::sortBy()
* @return mixed The value of the top element in the collection
*/
@@ -276,8 +275,7 @@ public function max($path, int $sort = \SORT_NUMERIC);
* ```
*
* @param callable|string $path The column name to use for sorting or callback that returns the value.
- * @param int $sort The sort type, one of SORT_STRING
- * SORT_NUMERIC or SORT_NATURAL
+ * @param int $sort The sort type, one of SORT_STRING, SORT_NUMERIC or SORT_NATURAL
* @see \Cake\Collection\CollectionInterface::sortBy()
* @return mixed The value of the bottom element in the collection
*/
@@ -306,9 +304,9 @@ public function min($path, int $sort = \SORT_NUMERIC);
* The average of an empty set or 0 rows is `null`. Collections with `null`
* values are not considered empty.
*
- * @param callable|string|null $path The property name to sum or a function
+ * @param callable|string|null $path The property name to compute the average or a function
* If no value is passed, an identity function will be used.
- * that will return the value of the property to sum.
+ * that will return the value of the property to compute the average.
* @return float|int|null
*/
public function avg($path = null);
@@ -339,18 +337,17 @@ public function avg($path = null);
* The median of an empty set or 0 rows is `null`. Collections with `null`
* values are not considered empty.
*
- * @param callable|string|null $path The property name to sum or a function
+ * @param callable|string|null $path The property name to compute the median or a function
* If no value is passed, an identity function will be used.
- * that will return the value of the property to sum.
+ * that will return the value of the property to compute the median.
* @return float|int|null
*/
public function median($path = null);
/**
* Returns a sorted iterator out of the elements in this collection,
- * ranked in ascending order by the results of running each value through a
- * callback. $callback can also be a string representing the column or property
- * name.
+ * ranked based on the results of applying a callback function to each value.
+ * The parameter $path can also be a string representing the column or property name.
*
* The callback will receive as its first argument each of the elements in $items,
* the value returned by the callback will be used as the value for sorting such
@@ -378,8 +375,7 @@ public function median($path = null);
*
* @param callable|string $path The column name to use for sorting or callback that returns the value.
* @param int $order The sort order, either SORT_DESC or SORT_ASC
- * @param int $sort The sort type, one of SORT_STRING
- * SORT_NUMERIC or SORT_NATURAL
+ * @param int $sort The sort type, one of SORT_STRING, SORT_NUMERIC or SORT_NATURAL
* @return self
*/
public function sortBy($path, int $order = SORT_DESC, int $sort = \SORT_NUMERIC): CollectionInterface;
@@ -513,7 +509,7 @@ public function countBy($path): CollectionInterface;
* ```
* $items = [
* ['invoice' => ['total' => 100]],
- * ['invoice' => ['total' => 200]]
+ * ['invoice' => ['total' => 200]],
* ];
*
* $total = (new Collection($items))->sumOf('invoice.total');
@@ -540,7 +536,7 @@ public function sumOf($path = null);
public function shuffle(): CollectionInterface;
/**
- * Returns a new collection with maximum $size random elements
+ * Returns a new collection with maximum $length random elements
* from this collection
*
* @param int $length the maximum number of elements to randomly
@@ -550,7 +546,7 @@ public function shuffle(): CollectionInterface;
public function sample(int $length = 10): CollectionInterface;
/**
- * Returns a new collection with maximum $size elements in the internal
+ * Returns a new collection with maximum $length elements in the internal
* order this collection was created. If a second parameter is passed, it
* will determine from what position to start taking elements.
*
@@ -598,19 +594,19 @@ public function skip(int $length): CollectionInterface;
* ```
* $items = [
* ['comment' => ['body' => 'cool', 'user' => ['name' => 'Mark']],
- * ['comment' => ['body' => 'very cool', 'user' => ['name' => 'Renan']]
+ * ['comment' => ['body' => 'very cool', 'user' => ['name' => 'Renan']],
* ];
*
* $extracted = (new Collection($items))->match(['user.name' => 'Renan']);
*
* // Result will look like this when converted to array
* [
- * ['comment' => ['body' => 'very cool', 'user' => ['name' => 'Renan']]
+ * ['comment' => ['body' => 'very cool', 'user' => ['name' => 'Renan']]]
* ]
* ```
*
* @param array $conditions a key-value list of conditions where
- * the key is a property path as accepted by `Collection::extract,
+ * the key is a property path as accepted by `Collection::extract`,
* and the value the condition against with each element will be matched
* @return self
*/
@@ -705,7 +701,7 @@ public function prependItem($item, $key = null): CollectionInterface;
* // Result will look like this when converted to array
* [
* 'a' => [1 => 'foo', 3 => 'baz'],
- * 'b' => [2 => 'bar']
+ * 'b' => [2 => 'bar'],
* ];
* ```
*
@@ -724,9 +720,9 @@ public function combine($keyPath, $valuePath, $groupPath = null): CollectionInte
* based on an id property path and a parent id property path.
*
* @param callable|string $idPath the column name path to use for determining
- * whether an element is parent of another
+ * whether an element is a parent of another
* @param callable|string $parentPath the column name path to use for determining
- * whether an element is child of another
+ * whether an element is a child of another
* @param string $nestingKey The key name under which children are nested
* @return self
*/
@@ -835,7 +831,7 @@ public function compile(bool $keepKeys = true): CollectionInterface;
/**
* Returns a new collection where any operations chained after it are guaranteed
- * to be run lazily. That is, elements will be yieleded one at a time.
+ * to be run lazily. That is, elements will be yielded one at a time.
*
* A lazy collection can only be iterated once. A second attempt results in an error.
*
@@ -1162,7 +1158,7 @@ public function countKeys(): int;
/**
* Create a new collection that is the cartesian product of the current collection
*
- * In order to create a carteisan product a collection must contain a single dimension
+ * In order to create a cartesian product a collection must contain a single dimension
* of data.
*
* ### Example
diff --git a/app/vendor/cakephp/cakephp/src/Command/PluginLoadCommand.php b/app/vendor/cakephp/cakephp/src/Command/PluginLoadCommand.php
index b4122832e..bfd61b91b 100644
--- a/app/vendor/cakephp/cakephp/src/Command/PluginLoadCommand.php
+++ b/app/vendor/cakephp/cakephp/src/Command/PluginLoadCommand.php
@@ -109,6 +109,14 @@ protected function modifyApplication(string $app, string $plugin): void
$this->abort();
}
+ // Check if plugin is already loaded
+ $regex = '#->addPlugin\(\'' . $plugin . '\'#mu';
+ if (preg_match($regex, $contents, $otherMatches, PREG_OFFSET_CAPTURE)) {
+ $this->io->info('The specified plugin is already loaded!');
+
+ return;
+ }
+
$append = "$indent \$this->addPlugin('%s');\n";
$insert = str_replace(', []', '', sprintf($append, $plugin));
diff --git a/app/vendor/cakephp/cakephp/src/Controller/Component/SecurityComponent.php b/app/vendor/cakephp/cakephp/src/Controller/Component/SecurityComponent.php
index 4043b3f36..1b84ba258 100644
--- a/app/vendor/cakephp/cakephp/src/Controller/Component/SecurityComponent.php
+++ b/app/vendor/cakephp/cakephp/src/Controller/Component/SecurityComponent.php
@@ -427,7 +427,7 @@ protected function _debugPostTokenNotMatching(Controller $controller, array $has
$expectedFields = Hash::get($expectedParts, 1);
$dataFields = Hash::get($hashParts, 1);
if ($dataFields) {
- $dataFields = unserialize($dataFields);
+ $dataFields = unserialize($dataFields, ['allowed_classes' => false]);
}
$fieldsMessages = $this->_debugCheckFields(
$dataFields,
diff --git a/app/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php b/app/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php
index 3ebf99fa4..34b8c18a7 100644
--- a/app/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php
+++ b/app/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php
@@ -350,6 +350,7 @@ protected function missingController(ServerRequest $request)
'plugin' => $request->getParam('plugin'),
'prefix' => $request->getParam('prefix'),
'_ext' => $request->getParam('_ext'),
+ 'class' => $request->getParam('controller'), // Deprecated: Will be removed in 4.5. Use `controller` instead.
]);
}
}
diff --git a/app/vendor/cakephp/cakephp/src/Core/StaticConfigTrait.php b/app/vendor/cakephp/cakephp/src/Core/StaticConfigTrait.php
index c11a12c60..2db862427 100644
--- a/app/vendor/cakephp/cakephp/src/Core/StaticConfigTrait.php
+++ b/app/vendor/cakephp/cakephp/src/Core/StaticConfigTrait.php
@@ -68,7 +68,7 @@ trait StaticConfigTrait
* ```
*
* @param array|string $key The name of the configuration, or an array of multiple configs.
- * @param object|array|null $config An array of name => configuration data for adapter.
+ * @param mixed $config Configuration value. Generally an array of name => configuration data for adapter.
* @throws \BadMethodCallException When trying to modify an existing config.
* @throws \LogicException When trying to store an invalid structured config array.
* @return void
@@ -95,7 +95,7 @@ public static function setConfig($key, $config = null): void
$config = ['className' => $config];
}
- if (isset($config['url'])) {
+ if (is_array($config) && isset($config['url'])) {
$parsed = static::parseDsn($config['url']);
unset($config['url']);
$config = $parsed + $config;
diff --git a/app/vendor/cakephp/cakephp/src/Core/composer.json b/app/vendor/cakephp/cakephp/src/Core/composer.json
index 2a62b03ec..d5d4cf761 100644
--- a/app/vendor/cakephp/cakephp/src/Core/composer.json
+++ b/app/vendor/cakephp/cakephp/src/Core/composer.json
@@ -25,6 +25,9 @@
"php": ">=7.4.0",
"cakephp/utility": "^4.0"
},
+ "provide": {
+ "psr/container-implementation": "^1.0 || ^2.0"
+ },
"suggest": {
"cakephp/event": "To use PluginApplicationInterface or plugin applications.",
"cakephp/cache": "To use Configure::store() and restore().",
diff --git a/app/vendor/cakephp/cakephp/src/Core/functions.php b/app/vendor/cakephp/cakephp/src/Core/functions.php
index e74ac1736..f938d8817 100644
--- a/app/vendor/cakephp/cakephp/src/Core/functions.php
+++ b/app/vendor/cakephp/cakephp/src/Core/functions.php
@@ -289,7 +289,12 @@ function deprecationWarning(string $message, int $stackFrame = 1): void
$frame = $trace[$stackFrame];
$frame += ['file' => '[internal]', 'line' => '??'];
- $relative = str_replace(DIRECTORY_SEPARATOR, '/', substr($frame['file'], strlen(ROOT) + 1));
+ // Assuming we're installed in vendor/cakephp/cakephp/src/Core/functions.php
+ $root = dirname(__DIR__, 5);
+ if (defined('ROOT')) {
+ $root = ROOT;
+ }
+ $relative = str_replace(DIRECTORY_SEPARATOR, '/', substr($frame['file'], strlen($root) + 1));
$patterns = (array)Configure::read('Error.ignoredDeprecationPaths');
foreach ($patterns as $pattern) {
$pattern = str_replace(DIRECTORY_SEPARATOR, '/', $pattern);
diff --git a/app/vendor/cakephp/cakephp/src/Database/Exception/DatabaseException.php b/app/vendor/cakephp/cakephp/src/Database/Exception/DatabaseException.php
index 3852808d9..05e4cd0dd 100644
--- a/app/vendor/cakephp/cakephp/src/Database/Exception/DatabaseException.php
+++ b/app/vendor/cakephp/cakephp/src/Database/Exception/DatabaseException.php
@@ -23,6 +23,10 @@
*/
class DatabaseException extends CakeException
{
+ /**
+ * @inheritDoc
+ */
+ protected $_messageTemplate = '%s';
}
// phpcs:disable
diff --git a/app/vendor/cakephp/cakephp/src/Database/Expression/WhenThenExpression.php b/app/vendor/cakephp/cakephp/src/Database/Expression/WhenThenExpression.php
index e4bbc0878..bf51eaf19 100644
--- a/app/vendor/cakephp/cakephp/src/Database/Expression/WhenThenExpression.php
+++ b/app/vendor/cakephp/cakephp/src/Database/Expression/WhenThenExpression.php
@@ -134,7 +134,7 @@ public function when($when, $type = null)
'The `$when` argument must be either a non-empty array, a scalar value, an object, ' .
'or an instance of `\%s`, `%s` given.',
ExpressionInterface::class,
- is_array($when) ? '[]' : getTypeName($when) // @phpstan-ignore-line
+ is_array($when) ? '[]' : getTypeName($when)
));
}
diff --git a/app/vendor/cakephp/cakephp/src/Database/Log/LoggingStatement.php b/app/vendor/cakephp/cakephp/src/Database/Log/LoggingStatement.php
index 47e529a55..ada3d381d 100644
--- a/app/vendor/cakephp/cakephp/src/Database/Log/LoggingStatement.php
+++ b/app/vendor/cakephp/cakephp/src/Database/Log/LoggingStatement.php
@@ -16,6 +16,8 @@
*/
namespace Cake\Database\Log;
+use Cake\Core\Configure;
+use Cake\Database\Exception\DatabaseException;
use Cake\Database\Statement\StatementDecorator;
use Exception;
use Psr\Log\LoggerInterface;
@@ -75,16 +77,31 @@ public function execute(?array $params = null): bool
$result = parent::execute($params);
$this->loggedQuery->took = (int)round((microtime(true) - $this->startTime) * 1000, 0);
} catch (Exception $e) {
+ $this->loggedQuery->error = $e;
+ $this->_log();
+
+ if (Configure::read('Error.convertStatementToDatabaseException', false) === true) {
+ $code = $e->getCode();
+ if (!is_int($code)) {
+ $code = null;
+ }
+
+ throw new DatabaseException([
+ 'message' => $e->getMessage(),
+ 'queryString' => $this->queryString,
+ ], $code, $e);
+ }
+
if (version_compare(PHP_VERSION, '8.2.0', '<')) {
deprecationWarning(
'4.4.12 - Having queryString set on exceptions is deprecated.' .
- 'If you are not using this attribute there is no action to take.'
+ 'If you are not using this attribute there is no action to take.' .
+ 'Otherwise, enable Error.convertStatementToDatabaseException.'
);
/** @psalm-suppress UndefinedPropertyAssignment */
$e->queryString = $this->queryString;
}
- $this->loggedQuery->error = $e;
- $this->_log();
+
throw $e;
}
diff --git a/app/vendor/cakephp/cakephp/src/Database/Query.php b/app/vendor/cakephp/cakephp/src/Database/Query.php
index fc66f6e80..503c3a443 100644
--- a/app/vendor/cakephp/cakephp/src/Database/Query.php
+++ b/app/vendor/cakephp/cakephp/src/Database/Query.php
@@ -29,6 +29,7 @@
use InvalidArgumentException;
use IteratorAggregate;
use RuntimeException;
+use Throwable;
/**
* This class represents a Relational database SQL Query. A query can be of
@@ -2456,7 +2457,7 @@ function ($errno, $errstr) {
);
$sql = $this->sql();
$params = $this->getValueBinder()->bindings();
- } catch (RuntimeException $e) {
+ } catch (Throwable $e) {
$sql = 'SQL could not be generated for this query as it is incomplete.';
$params = [];
} finally {
diff --git a/app/vendor/cakephp/cakephp/src/Database/Schema/PostgresSchemaDialect.php b/app/vendor/cakephp/cakephp/src/Database/Schema/PostgresSchemaDialect.php
index 4b2b6e7dd..423727582 100644
--- a/app/vendor/cakephp/cakephp/src/Database/Schema/PostgresSchemaDialect.php
+++ b/app/vendor/cakephp/cakephp/src/Database/Schema/PostgresSchemaDialect.php
@@ -642,6 +642,10 @@ public function createTableSql(TableSchema $schema, array $columns, array $const
$content = array_merge($columns, $constraints);
$content = implode(",\n", array_filter($content));
$tableName = $this->_driver->quoteIdentifier($schema->name());
+ $dbSchema = $this->_driver->schema();
+ if ($dbSchema != 'public') {
+ $tableName = $this->_driver->quoteIdentifier($dbSchema) . '.' . $tableName;
+ }
$temporary = $schema->isTemporary() ? ' TEMPORARY ' : ' ';
$out = [];
$out[] = sprintf("CREATE%sTABLE %s (\n%s\n)", $temporary, $tableName, $content);
diff --git a/app/vendor/cakephp/cakephp/src/Database/Schema/TableSchema.php b/app/vendor/cakephp/cakephp/src/Database/Schema/TableSchema.php
index 3dac32330..9db5fbb16 100644
--- a/app/vendor/cakephp/cakephp/src/Database/Schema/TableSchema.php
+++ b/app/vendor/cakephp/cakephp/src/Database/Schema/TableSchema.php
@@ -475,13 +475,6 @@ public function addIndex(string $name, $attrs)
$this->_table
));
}
- if (empty($attrs['columns'])) {
- throw new DatabaseException(sprintf(
- 'Index "%s" in table "%s" must have at least one column.',
- $name,
- $this->_table
- ));
- }
$attrs['columns'] = (array)$attrs['columns'];
foreach ($attrs['columns'] as $field) {
if (empty($this->_columns[$field])) {
diff --git a/app/vendor/cakephp/cakephp/src/Database/Type/DateTimeType.php b/app/vendor/cakephp/cakephp/src/Database/Type/DateTimeType.php
index 655c78f3c..130b49bd2 100644
--- a/app/vendor/cakephp/cakephp/src/Database/Type/DateTimeType.php
+++ b/app/vendor/cakephp/cakephp/src/Database/Type/DateTimeType.php
@@ -229,10 +229,9 @@ public function toPHP($value, DriverInterface $driver)
$class = $this->_className;
if (is_int($value)) {
$instance = new $class('@' . $value);
+ } elseif (strpos($value, '0000-00-00') === 0) {
+ return null;
} else {
- if (strpos($value, '0000-00-00') === 0) {
- return null;
- }
$instance = new $class($value, $this->dbTimezone);
}
@@ -282,14 +281,13 @@ public function manyToPHP(array $values, array $fields, DriverInterface $driver)
}
$value = $values[$field];
- if (strpos($value, '0000-00-00') === 0) {
- $values[$field] = null;
- continue;
- }
$class = $this->_className;
if (is_int($value)) {
$instance = new $class('@' . $value);
+ } elseif (strpos($value, '0000-00-00') === 0) {
+ $values[$field] = null;
+ continue;
} else {
$instance = new $class($value, $this->dbTimezone);
}
diff --git a/app/vendor/cakephp/cakephp/src/Datasource/Paging/NumericPaginator.php b/app/vendor/cakephp/cakephp/src/Datasource/Paging/NumericPaginator.php
index 66d0665c4..a49c21699 100644
--- a/app/vendor/cakephp/cakephp/src/Datasource/Paging/NumericPaginator.php
+++ b/app/vendor/cakephp/cakephp/src/Datasource/Paging/NumericPaginator.php
@@ -42,6 +42,13 @@ class NumericPaginator implements PaginatorInterface
* - `allowedParameters` - A list of parameters users are allowed to set using request
* parameters. Modifying this list will allow users to have more influence
* over pagination, be careful with what you permit.
+ * - `sortableFields` - A list of fields which can be used for sorting. By
+ * default all table columns can be used for sorting. You can use this option
+ * to restrict sorting only by particular fields. If you want to allow
+ * sorting on either associated columns or calculated fields then you will
+ * have to explicity specify them (along with other fields). Using an empty
+ * array will disable sorting alltogether.
+ * - `finder` - The table finder to use. Defaults to `all`.
*
* @var array
*/
diff --git a/app/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php b/app/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php
index 3ae2f9ab0..f86155762 100644
--- a/app/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php
+++ b/app/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php
@@ -348,6 +348,7 @@ public function logException(Throwable $exception, ?ServerRequestInterface $requ
foreach ($this->getConfig('skipLog') as $class) {
if ($exception instanceof $class) {
$shouldLog = false;
+ break;
}
}
}
diff --git a/app/vendor/cakephp/cakephp/src/Filesystem/Folder.php b/app/vendor/cakephp/cakephp/src/Filesystem/Folder.php
index 00d11a454..70ac122e7 100644
--- a/app/vendor/cakephp/cakephp/src/Filesystem/Folder.php
+++ b/app/vendor/cakephp/cakephp/src/Filesystem/Folder.php
@@ -776,8 +776,8 @@ public function delete(?string $path = null): bool
*
* ### Options
*
- * - `from` The directory to copy from, this will cause a cd() to occur, changing the results of pwd().
- * - `mode` The mode to copy the files/directories with as integer, e.g. 0775.
+ * - `from` The directory to copy from, this will cause a cd() to occur, changing the results of `pwd()`.
+ * - `mode` The mode to copy the files/directories with as integer, e.g. `0770`.
* - `skip` Files/directories to skip.
* - `scheme` Folder::MERGE, Folder::OVERWRITE, Folder::SKIP
* - `recursive` Whether to copy recursively or not (default: true - recursive)
@@ -877,8 +877,8 @@ public function copy(string $to, array $options = []): bool
*
* ### Options
*
- * - `from` The directory to copy from, this will cause a cd() to occur, changing the results of pwd().
- * - `mode` The mode to copy the files/directories with as integer, e.g. 0775.
+ * - `from` The directory to copy from, this will cause a cd() to occur, changing the results of `pwd()`.
+ * - `mode` The mode to copy the files/directories with as integer, e.g. `0770`.
* - `skip` Files/directories to skip.
* - `scheme` Folder::MERGE, Folder::OVERWRITE, Folder::SKIP
* - `recursive` Whether to copy recursively or not (default: true - recursive)
diff --git a/app/vendor/cakephp/cakephp/src/Http/Cookie/Cookie.php b/app/vendor/cakephp/cakephp/src/Http/Cookie/Cookie.php
index f4fea6736..24d2494cd 100644
--- a/app/vendor/cakephp/cakephp/src/Http/Cookie/Cookie.php
+++ b/app/vendor/cakephp/cakephp/src/Http/Cookie/Cookie.php
@@ -621,7 +621,7 @@ public function withNeverExpire()
public function withExpired()
{
$new = clone $this;
- $new->expiresAt = new DateTimeImmutable('1970-01-01 00:00:01');
+ $new->expiresAt = new DateTimeImmutable('@1');
return $new;
}
diff --git a/app/vendor/cakephp/cakephp/src/Http/Cookie/CookieCollection.php b/app/vendor/cakephp/cakephp/src/Http/Cookie/CookieCollection.php
index d7c13295f..a028433f3 100644
--- a/app/vendor/cakephp/cakephp/src/Http/Cookie/CookieCollection.php
+++ b/app/vendor/cakephp/cakephp/src/Http/Cookie/CookieCollection.php
@@ -88,7 +88,7 @@ public static function createFromServerRequest(ServerRequestInterface $request)
$data = $request->getCookieParams();
$cookies = [];
foreach ($data as $name => $value) {
- $cookies[] = new Cookie($name, $value);
+ $cookies[] = new Cookie((string)$name, $value);
}
return new static($cookies);
diff --git a/app/vendor/cakephp/cakephp/src/Http/Session.php b/app/vendor/cakephp/cakephp/src/Http/Session.php
index a9a0687b0..d9a88e35e 100644
--- a/app/vendor/cakephp/cakephp/src/Http/Session.php
+++ b/app/vendor/cakephp/cakephp/src/Http/Session.php
@@ -17,6 +17,8 @@
namespace Cake\Http;
use Cake\Core\App;
+use Cake\Core\Exception\CakeException;
+use Cake\Error\Debugger;
use Cake\Utility\Hash;
use InvalidArgumentException;
use RuntimeException;
@@ -65,6 +67,13 @@ class Session
*/
protected $_isCLI = false;
+ /**
+ * Info about where the headers were sent.
+ *
+ * @var array{filename: string, line: int}|null
+ */
+ protected $headerSentInfo = null;
+
/**
* Returns a new instance of a session after building a configuration bundle for it.
* This function allows an options array which will be used for configuring the session
@@ -342,7 +351,10 @@ public function start(): bool
throw new RuntimeException('Session was already started');
}
- if (ini_get('session.use_cookies') && headers_sent()) {
+ $filename = $line = null;
+ if (ini_get('session.use_cookies') && headers_sent($filename, $line)) {
+ $this->headerSentInfo = ['filename' => $filename, 'line' => $line];
+
return false;
}
@@ -491,8 +503,18 @@ public function consume(string $name)
*/
public function write($name, $value = null): void
{
- if (!$this->started()) {
- $this->start();
+ $started = $this->started() || $this->start();
+ if (!$started) {
+ $message = 'Could not start the session';
+ if ($this->headerSentInfo !== null) {
+ $message .= sprintf(
+ ', headers already sent in file `%s` on line `%s`',
+ Debugger::trimPath($this->headerSentInfo['filename']),
+ $this->headerSentInfo['line']
+ );
+ }
+
+ throw new CakeException($message);
}
if (!is_array($name)) {
diff --git a/app/vendor/cakephp/cakephp/src/Http/composer.json b/app/vendor/cakephp/cakephp/src/Http/composer.json
index c5d38425d..ee0f86a2c 100644
--- a/app/vendor/cakephp/cakephp/src/Http/composer.json
+++ b/app/vendor/cakephp/cakephp/src/Http/composer.json
@@ -35,7 +35,9 @@
"laminas/laminas-httphandlerrunner": "^1.0"
},
"provide": {
- "psr/http-client-implementation": "^1.0"
+ "psr/http-client-implementation": "^1.0",
+ "psr/http-server-implementation": "^1.0",
+ "psr/http-server-middleware-implementation": "^1.0"
},
"suggest": {
"cakephp/cache": "To use cache session storage",
diff --git a/app/vendor/cakephp/cakephp/src/Log/Log.php b/app/vendor/cakephp/cakephp/src/Log/Log.php
index aa39561b0..930187820 100644
--- a/app/vendor/cakephp/cakephp/src/Log/Log.php
+++ b/app/vendor/cakephp/cakephp/src/Log/Log.php
@@ -273,7 +273,7 @@ public static function levels(): array
* ```
*
* @param array|string $key The name of the logger config, or an array of multiple configs.
- * @param array|null $config An array of name => config data for adapter.
+ * @param array|\Closure|null $config An array of name => config data for adapter.
* @return void
* @throws \BadMethodCallException When trying to modify an existing config.
*/
diff --git a/app/vendor/cakephp/cakephp/src/Log/composer.json b/app/vendor/cakephp/cakephp/src/Log/composer.json
index 25512558f..78f0d0eee 100644
--- a/app/vendor/cakephp/cakephp/src/Log/composer.json
+++ b/app/vendor/cakephp/cakephp/src/Log/composer.json
@@ -28,7 +28,7 @@
"psr/log": "^1.0 || ^2.0"
},
"provide": {
- "psr/log-implementation": "^1.0.0"
+ "psr/log-implementation": "^1.0 || ^2.0"
},
"autoload": {
"psr-4": {
diff --git a/app/vendor/cakephp/cakephp/src/Mailer/Transport/SmtpTransport.php b/app/vendor/cakephp/cakephp/src/Mailer/Transport/SmtpTransport.php
index 68be51147..0e6409eed 100644
--- a/app/vendor/cakephp/cakephp/src/Mailer/Transport/SmtpTransport.php
+++ b/app/vendor/cakephp/cakephp/src/Mailer/Transport/SmtpTransport.php
@@ -16,6 +16,7 @@
*/
namespace Cake\Mailer\Transport;
+use Cake\Core\Exception\CakeException;
use Cake\Mailer\AbstractTransport;
use Cake\Mailer\Message;
use Cake\Network\Exception\SocketException;
@@ -28,8 +29,15 @@
*/
class SmtpTransport extends AbstractTransport
{
- protected const AUTH_PLAIN = 'PLAIN';
- protected const AUTH_LOGIN = 'LOGIN';
+ public const AUTH_PLAIN = 'PLAIN';
+ public const AUTH_LOGIN = 'LOGIN';
+ public const AUTH_XOAUTH2 = 'XOAUTH2';
+
+ public const SUPPORTED_AUTH_TYPES = [
+ self::AUTH_PLAIN,
+ self::AUTH_LOGIN,
+ self::AUTH_XOAUTH2,
+ ];
/**
* Default config for this class
@@ -45,6 +53,7 @@ class SmtpTransport extends AbstractTransport
'client' => null,
'tls' => false,
'keepAlive' => false,
+ 'authType' => null,
];
/**
@@ -69,7 +78,7 @@ class SmtpTransport extends AbstractTransport
protected $_lastResponse = [];
/**
- * Detected authentication type.
+ * Authentication type.
*
* @var string|null
*/
@@ -230,7 +239,22 @@ protected function _bufferResponseLines(array $responseLines): void
*/
protected function _parseAuthType(): void
{
- $this->authType = null;
+ $authType = $this->getConfig('authType');
+ if ($authType !== null) {
+ if (!in_array($authType, self::SUPPORTED_AUTH_TYPES)) {
+ throw new CakeException(
+ 'Unsupported auth type. Available types are: ' . implode(', ', self::SUPPORTED_AUTH_TYPES)
+ );
+ }
+
+ $this->authType = $authType;
+
+ return;
+ }
+
+ if (!isset($this->_config['username'], $this->_config['password'])) {
+ return;
+ }
$auth = '';
foreach ($this->_lastResponse as $line) {
@@ -240,17 +264,19 @@ protected function _parseAuthType(): void
}
}
- if (strpos($auth, self::AUTH_PLAIN) !== false) {
- $this->authType = self::AUTH_PLAIN;
-
+ if ($auth === '') {
return;
}
- if (strpos($auth, self::AUTH_LOGIN) !== false) {
- $this->authType = self::AUTH_LOGIN;
+ foreach (self::SUPPORTED_AUTH_TYPES as $type) {
+ if (strpos($auth, $type) !== false) {
+ $this->authType = $type;
- return;
+ return;
+ }
}
+
+ throw new CakeException('Unsupported auth type: ' . substr($auth, 5));
}
/**
@@ -322,27 +348,27 @@ protected function _auth(): void
$username = $this->_config['username'];
$password = $this->_config['password'];
- if (empty($this->authType)) {
- $replyCode = $this->_authPlain($username, $password);
- if ($replyCode === '235') {
- return;
- }
-
- $this->_authLogin($username, $password);
- return;
- }
+ switch ($this->authType) {
+ case self::AUTH_PLAIN:
+ $this->_authPlain($username, $password);
+ break;
- if ($this->authType === self::AUTH_PLAIN) {
- $this->_authPlain($username, $password);
+ case self::AUTH_LOGIN:
+ $this->_authLogin($username, $password);
+ break;
- return;
- }
+ case self::AUTH_XOAUTH2:
+ $this->_authXoauth2($username, $password);
+ break;
- if ($this->authType === self::AUTH_LOGIN) {
- $this->_authLogin($username, $password);
+ default:
+ $replyCode = $this->_authPlain($username, $password);
+ if ($replyCode === '235') {
+ break;
+ }
- return;
+ $this->_authLogin($username, $password);
}
}
@@ -394,6 +420,26 @@ protected function _authLogin(string $username, string $password): void
}
}
+ /**
+ * Authenticate using AUTH XOAUTH2 mechanism.
+ *
+ * @param string $username Username.
+ * @param string $token Token.
+ * @return void
+ * @see https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#smtp-protocol-exchange
+ * @see https://developers.google.com/gmail/imap/xoauth2-protocol#smtp_protocol_exchange
+ */
+ protected function _authXoauth2(string $username, string $token): void
+ {
+ $authString = base64_encode(sprintf(
+ "user=%s\1auth=Bearer %s\1\1",
+ $username,
+ $token
+ ));
+
+ $this->_smtpSend('AUTH XOAUTH2 ' . $authString, '235');
+ }
+
/**
* Prepares the `MAIL FROM` SMTP command.
*
diff --git a/app/vendor/cakephp/cakephp/src/ORM/AssociationCollection.php b/app/vendor/cakephp/cakephp/src/ORM/AssociationCollection.php
index 5e7d6ff2c..9e9e9c0d1 100644
--- a/app/vendor/cakephp/cakephp/src/ORM/AssociationCollection.php
+++ b/app/vendor/cakephp/cakephp/src/ORM/AssociationCollection.php
@@ -66,6 +66,9 @@ public function __construct(?LocatorInterface $tableLocator = null)
* @param string $alias The association alias
* @param \Cake\ORM\Association $association The association to add.
* @return \Cake\ORM\Association The association object being added.
+ * @template T of \Cake\ORM\Association
+ * @psalm-param T $association
+ * @psalm-return T
*/
public function add(string $alias, Association $association): Association
{
@@ -82,7 +85,9 @@ public function add(string $alias, Association $association): Association
* @param array $options List of options to configure the association definition.
* @return \Cake\ORM\Association
* @throws \InvalidArgumentException
- * @psalm-param class-string<\Cake\ORM\Association> $className
+ * @template T of \Cake\ORM\Association
+ * @psalm-param class-string $className
+ * @psalm-return T
*/
public function load(string $className, string $associated, array $options = []): Association
{
diff --git a/app/vendor/cakephp/cakephp/src/ORM/Table.php b/app/vendor/cakephp/cakephp/src/ORM/Table.php
index 0c8250691..1a37af224 100644
--- a/app/vendor/cakephp/cakephp/src/ORM/Table.php
+++ b/app/vendor/cakephp/cakephp/src/ORM/Table.php
@@ -632,9 +632,7 @@ protected function _initializeSchema(TableSchemaInterface $schema): TableSchemaI
*/
public function hasField(string $field): bool
{
- $schema = $this->getSchema();
-
- return $schema->getColumn($field) !== null;
+ return $this->getSchema()->getColumn($field) !== null;
}
/**
@@ -1048,10 +1046,7 @@ public function belongsTo(string $associated, array $options = []): BelongsTo
{
$options += ['sourceTable' => $this];
- /** @var \Cake\ORM\Association\BelongsTo $association */
- $association = $this->_associations->load(BelongsTo::class, $associated, $options);
-
- return $association;
+ return $this->_associations->load(BelongsTo::class, $associated, $options);
}
/**
@@ -1094,10 +1089,7 @@ public function hasOne(string $associated, array $options = []): HasOne
{
$options += ['sourceTable' => $this];
- /** @var \Cake\ORM\Association\HasOne $association */
- $association = $this->_associations->load(HasOne::class, $associated, $options);
-
- return $association;
+ return $this->_associations->load(HasOne::class, $associated, $options);
}
/**
@@ -1146,10 +1138,7 @@ public function hasMany(string $associated, array $options = []): HasMany
{
$options += ['sourceTable' => $this];
- /** @var \Cake\ORM\Association\HasMany $association */
- $association = $this->_associations->load(HasMany::class, $associated, $options);
-
- return $association;
+ return $this->_associations->load(HasMany::class, $associated, $options);
}
/**
@@ -1200,10 +1189,7 @@ public function belongsToMany(string $associated, array $options = []): BelongsT
{
$options += ['sourceTable' => $this];
- /** @var \Cake\ORM\Association\BelongsToMany $association */
- $association = $this->_associations->load(BelongsToMany::class, $associated, $options);
-
- return $association;
+ return $this->_associations->load(BelongsToMany::class, $associated, $options);
}
/**
@@ -2782,9 +2768,8 @@ public function newEmptyEntity(): EntityInterface
public function newEntity(array $data, array $options = []): EntityInterface
{
$options['associated'] = $options['associated'] ?? $this->_associations->keys();
- $marshaller = $this->marshaller();
- return $marshaller->one($data, $options);
+ return $this->marshaller()->one($data, $options);
}
/**
@@ -2822,9 +2807,8 @@ public function newEntity(array $data, array $options = []): EntityInterface
public function newEntities(array $data, array $options = []): array
{
$options['associated'] = $options['associated'] ?? $this->_associations->keys();
- $marshaller = $this->marshaller();
- return $marshaller->many($data, $options);
+ return $this->marshaller()->many($data, $options);
}
/**
@@ -2881,9 +2865,8 @@ public function newEntities(array $data, array $options = []): array
public function patchEntity(EntityInterface $entity, array $data, array $options = []): EntityInterface
{
$options['associated'] = $options['associated'] ?? $this->_associations->keys();
- $marshaller = $this->marshaller();
- return $marshaller->merge($entity, $data, $options);
+ return $this->marshaller()->merge($entity, $data, $options);
}
/**
@@ -2920,9 +2903,8 @@ public function patchEntity(EntityInterface $entity, array $data, array $options
public function patchEntities(iterable $entities, array $data, array $options = []): array
{
$options['associated'] = $options['associated'] ?? $this->_associations->keys();
- $marshaller = $this->marshaller();
- return $marshaller->mergeMany($entities, $data, $options);
+ return $this->marshaller()->mergeMany($entities, $data, $options);
}
/**
diff --git a/app/vendor/cakephp/cakephp/src/Routing/RouteBuilder.php b/app/vendor/cakephp/cakephp/src/Routing/RouteBuilder.php
index 80952eee0..25dcfd5eb 100644
--- a/app/vendor/cakephp/cakephp/src/Routing/RouteBuilder.php
+++ b/app/vendor/cakephp/cakephp/src/Routing/RouteBuilder.php
@@ -985,13 +985,13 @@ public function registerMiddleware(string $name, $middleware)
}
/**
- * Apply a middleware to the current route scope.
+ * Apply one or many middleware to the current route scope.
*
- * Requires middleware to be registered via `registerMiddleware()`
+ * Requires middleware to be registered via `registerMiddleware()`.
*
* @param string ...$names The names of the middleware to apply to the current scope.
* @return $this
- * @throws \RuntimeException
+ * @throws \RuntimeException If it cannot apply one of the given middleware or middleware groups.
* @see \Cake\Routing\RouteCollection::addMiddlewareToScope()
*/
public function applyMiddleware(string ...$names)
diff --git a/app/vendor/cakephp/cakephp/src/Routing/RouteCollection.php b/app/vendor/cakephp/cakephp/src/Routing/RouteCollection.php
index 5ceadaf14..8f96a5a99 100644
--- a/app/vendor/cakephp/cakephp/src/Routing/RouteCollection.php
+++ b/app/vendor/cakephp/cakephp/src/Routing/RouteCollection.php
@@ -124,6 +124,12 @@ public function parse(string $url, string $method = ''): array
{
$decoded = urldecode($url);
+ $queryParameters = [];
+ if (strpos($url, '?') !== false) {
+ [$url, $qs] = explode('?', $url, 2);
+ parse_str($qs, $queryParameters);
+ }
+
// Sort path segments matching longest paths first.
krsort($this->_paths);
@@ -132,12 +138,6 @@ public function parse(string $url, string $method = ''): array
continue;
}
- $queryParameters = [];
- if (strpos($url, '?') !== false) {
- [$url, $qs] = explode('?', $url, 2);
- parse_str($qs, $queryParameters);
- }
-
foreach ($routes as $route) {
$r = $route->parse($url, $method);
if ($r === null) {
diff --git a/app/vendor/cakephp/cakephp/src/Shell/Helper/ProgressHelper.php b/app/vendor/cakephp/cakephp/src/Shell/Helper/ProgressHelper.php
index b91a69c5b..f3eb29ff1 100644
--- a/app/vendor/cakephp/cakephp/src/Shell/Helper/ProgressHelper.php
+++ b/app/vendor/cakephp/cakephp/src/Shell/Helper/ProgressHelper.php
@@ -35,6 +35,17 @@
*/
class ProgressHelper extends Helper
{
+ /**
+ * Default value for progress bar total value.
+ * Percent completion is derived from progress/total
+ */
+ protected const DEFAULT_TOTAL = 100;
+
+ /**
+ * Default value for progress bar width
+ */
+ protected const DEFAULT_WIDTH = 80;
+
/**
* The current progress.
*
@@ -47,14 +58,14 @@ class ProgressHelper extends Helper
*
* @var int
*/
- protected $_total = 0;
+ protected $_total = self::DEFAULT_TOTAL;
/**
* The width of the bar.
*
* @var int
*/
- protected $_width = 0;
+ protected $_width = self::DEFAULT_WIDTH;
/**
* Output a progress bar.
@@ -102,7 +113,7 @@ public function output(array $args): void
*/
public function init(array $args = [])
{
- $args += ['total' => 100, 'width' => 80];
+ $args += ['total' => self::DEFAULT_TOTAL, 'width' => self::DEFAULT_WIDTH];
$this->_progress = 0;
$this->_width = $args['width'];
$this->_total = $args['total'];
diff --git a/app/vendor/cakephp/cakephp/src/TestSuite/TestEmailTransport.php b/app/vendor/cakephp/cakephp/src/TestSuite/TestEmailTransport.php
index dee56b7d6..f70f872fa 100644
--- a/app/vendor/cakephp/cakephp/src/TestSuite/TestEmailTransport.php
+++ b/app/vendor/cakephp/cakephp/src/TestSuite/TestEmailTransport.php
@@ -42,7 +42,7 @@ class TestEmailTransport extends DebugTransport
*/
public function send(Message $message): array
{
- static::$messages[] = $message;
+ static::$messages[] = clone $message;
return parent::send($message);
}
diff --git a/app/vendor/cakephp/cakephp/src/Utility/Hash.php b/app/vendor/cakephp/cakephp/src/Utility/Hash.php
index f30cc8271..782f2c5ca 100644
--- a/app/vendor/cakephp/cakephp/src/Utility/Hash.php
+++ b/app/vendor/cakephp/cakephp/src/Utility/Hash.php
@@ -1119,7 +1119,6 @@ public static function diff(array $data, array $compare): array
next($intersection);
}
- /** @phpstan-ignore-next-line */
return $data + $compare;
}
diff --git a/app/vendor/cakephp/cakephp/src/Validation/Validation.php b/app/vendor/cakephp/cakephp/src/Validation/Validation.php
index c70c3d80e..6ca684f3a 100644
--- a/app/vendor/cakephp/cakephp/src/Validation/Validation.php
+++ b/app/vendor/cakephp/cakephp/src/Validation/Validation.php
@@ -1614,7 +1614,7 @@ public static function utf8($value, array $options = []): bool
}
$options += ['extended' => false];
if ($options['extended']) {
- return true;
+ return preg_match('//u', $value) === 1;
}
return preg_match('/[\x{10000}-\x{10FFFF}]/u', $value) === 0;
diff --git a/app/vendor/cakephp/cakephp/src/Validation/Validator.php b/app/vendor/cakephp/cakephp/src/Validation/Validator.php
index bbc06bef3..e968a4c96 100644
--- a/app/vendor/cakephp/cakephp/src/Validation/Validator.php
+++ b/app/vendor/cakephp/cakephp/src/Validation/Validator.php
@@ -231,7 +231,7 @@ public function errors(array $data, bool $newRecord = true): array
/**
* Validates and returns an array of failed fields and their error messages.
*
- * @param array $data The data to be checked for errors
+ * @param array $data The data to be checked for errors
* @param bool $newRecord whether the data to be validated is new or to be updated.
* @return array Array of failed fields
*/
@@ -240,6 +240,7 @@ public function validate(array $data, bool $newRecord = true): array
$errors = [];
foreach ($this->_fields as $name => $field) {
+ $name = (string)$name;
$keyPresent = array_key_exists($name, $data);
$providers = $this->_providers;
@@ -422,12 +423,12 @@ public function offsetExists($field): bool
/**
* Returns the rule set for a field
*
- * @param string $field name of the field to check
+ * @param string|int $field name of the field to check
* @return \Cake\Validation\ValidationSet
*/
public function offsetGet($field): ValidationSet
{
- return $this->field($field);
+ return $this->field((string)$field);
}
/**
@@ -676,7 +677,7 @@ public function remove(string $field, ?string $rule = null)
* You can also set mode and message for all passed fields, the individual
* setting takes precedence over group settings.
*
- * @param array|string $field the name of the field or list of fields.
+ * @param array|string $field the name of the field or list of fields.
* @param callable|string|bool $mode Valid values are true, false, 'create', 'update'.
* If a callable is passed then the field will be required only when the callback
* returns true.
@@ -698,7 +699,7 @@ public function requirePresence($field, $mode = true, ?string $message = null)
$settings = $this->_convertValidatorToArray($fieldName, $defaults, $setting);
$fieldName = current(array_keys($settings));
- $this->field($fieldName)->requirePresence($settings[$fieldName]['mode']);
+ $this->field((string)$fieldName)->requirePresence($settings[$fieldName]['mode']);
if ($settings[$fieldName]['message']) {
$this->_presenceMessages[$fieldName] = $settings[$fieldName]['message'];
}
@@ -1144,12 +1145,15 @@ public function notEmptyDateTime(string $field, ?string $message = null, $when =
*
* @param string|int $fieldName name of field
* @param array $defaults default settings
- * @param array|string $settings settings from data
+ * @param array|string $settings settings from data
* @return array
* @throws \InvalidArgumentException
*/
protected function _convertValidatorToArray($fieldName, array $defaults = [], $settings = []): array
{
+ if (is_int($settings)) {
+ $settings = (string)$settings;
+ }
if (is_string($settings)) {
$fieldName = $settings;
$settings = [];
@@ -1224,7 +1228,7 @@ protected function _convertValidatorToArray($fieldName, array $defaults = [], $s
*
* @deprecated 3.7.0 Use {@link notEmptyString()}, {@link notEmptyArray()}, {@link notEmptyFile()},
* {@link notEmptyDate()}, {@link notEmptyTime()} or {@link notEmptyDateTime()} instead.
- * @param array|string $field the name of the field or list of fields
+ * @param array|string $field the name of the field or list of fields
* @param string|null $message The message to show if the field is not
* @param callable|string|bool $when Indicates when the field is not allowed
* to be empty. Valid values are true (always), 'create', 'update'. If a
@@ -1255,7 +1259,7 @@ public function notEmpty($field, ?string $message = null, $when = false)
$whenSetting = $this->invertWhenClause($settings[$fieldName]['when']);
- $this->field($fieldName)->allowEmpty($whenSetting);
+ $this->field((string)$fieldName)->allowEmpty($whenSetting);
$this->_allowEmptyFlags[$fieldName] = static::EMPTY_ALL;
if ($settings[$fieldName]['message']) {
$this->_allowEmptyMessages[$fieldName] = $settings[$fieldName]['message'];
diff --git a/app/vendor/cakephp/cakephp/src/View/Helper/PaginatorHelper.php b/app/vendor/cakephp/cakephp/src/View/Helper/PaginatorHelper.php
index a3033bcc2..058248c99 100644
--- a/app/vendor/cakephp/cakephp/src/View/Helper/PaginatorHelper.php
+++ b/app/vendor/cakephp/cakephp/src/View/Helper/PaginatorHelper.php
@@ -891,11 +891,9 @@ protected function _modulusNumbers(StringTemplate $templater, array $params, arr
]);
}
- $url = $options['url'];
- $url['?']['page'] = $params['page'];
$out .= $templater->format('current', [
'text' => $this->Number->format($params['page']),
- 'url' => $this->generateUrl($url, $options['model']),
+ 'url' => $this->generateUrl(['page' => $params['page']], $options['model'], $options['url']),
]);
$start = $params['page'] + 1;
diff --git a/app/vendor/cakephp/cakephp/src/View/StringTemplate.php b/app/vendor/cakephp/cakephp/src/View/StringTemplate.php
index d5f875bed..9a838950f 100644
--- a/app/vendor/cakephp/cakephp/src/View/StringTemplate.php
+++ b/app/vendor/cakephp/cakephp/src/View/StringTemplate.php
@@ -179,8 +179,15 @@ protected function _compileTemplates(array $templates = []): void
$template = $this->get($name);
if ($template === null) {
$this->_compiled[$name] = [null, null];
+
+ continue;
}
+ assert(
+ is_string($template),
+ sprintf('Template for `%s` must be of type `string`, but is `%s`', $name, gettype($template))
+ );
+
$template = str_replace('%', '%%', $template);
preg_match_all('#\{\{([\w\.]+)\}\}#', $template, $matches);
$this->_compiled[$name] = [
diff --git a/app/vendor/cakephp/cakephp/templates/Error/missing_controller.php b/app/vendor/cakephp/cakephp/templates/Error/missing_controller.php
index 02899ced8..9b73c6f89 100644
--- a/app/vendor/cakephp/cakephp/templates/Error/missing_controller.php
+++ b/app/vendor/cakephp/cakephp/templates/Error/missing_controller.php
@@ -11,7 +11,7 @@
* @link https://cakephp.org CakePHP(tm) Project
* @since 0.10.0
* @license https://opensource.org/licenses/mit-license.php MIT License
- * @var string $class
+ * @var string $controller
*/
use Cake\Core\Configure;
use Cake\Core\Plugin;
@@ -21,10 +21,10 @@
$namespace = Configure::read('App.namespace');
$prefixNs = $prefixPath = '';
-$incompleteInflection = (strpos($class, '_') !== false || strpos($class, '-'));
-$originalClass = $class;
+$incompleteInflection = (strpos($controller, '_') !== false || strpos($controller, '-'));
+$originalClass = $controller;
-$class = Inflector::camelize($class);
+$class = Inflector::camelize($controller);
if (!empty($prefix)) {
$prefix = array_map('Cake\Utility\Inflector::camelize', explode('/', $prefix));
diff --git a/app/vendor/cakephp/chronos/LICENSE b/app/vendor/cakephp/chronos/LICENSE
index 97f3ee6d4..e8772ee54 100644
--- a/app/vendor/cakephp/chronos/LICENSE
+++ b/app/vendor/cakephp/chronos/LICENSE
@@ -1,5 +1,5 @@
Copyright (C) Brian Nesbitt
-Copyright (C) Cake Software Foundation, Inc. (http://cakefoundation.org)
+Copyright (C) Cake Software Foundation, Inc. (https://cakefoundation.org)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/app/vendor/cakephp/chronos/README.md b/app/vendor/cakephp/chronos/README.md
index 0aad3315e..ca6f943dd 100644
--- a/app/vendor/cakephp/chronos/README.md
+++ b/app/vendor/cakephp/chronos/README.md
@@ -63,7 +63,6 @@ want to migrate, we could use the following to update files:
```
# Replace imports
-find ./src -type f -name '*.php' -exec sed -i '' 's/use Carbon\\CarbonInterval/use Cake\\Chronos\\ChronosInterval/g' {} \;
find ./src -type f -name '*.php' -exec sed -i '' 's/use Carbon\\CarbonImmutable/use Cake\\Chronos\\Chronos/g' {} \;
find ./src -type f -name '*.php' -exec sed -i '' 's/use Carbon\\Carbon/use Cake\\Chronos\\Chronos/g' {} \;
@@ -104,7 +103,7 @@ In the case that you need a mutable instance you can get one:
$time = new Chronos('2015-10-21 16:29:00');
$mutable = $time->toMutable();
-$date = new Date('2015-10-21');
+$date = new ChronosDate('2015-10-21');
$mutable = $date->toMutable();
```
@@ -130,9 +129,9 @@ set to the server default timezone. This makes them ideal when working with
calendar dates as the time components will always match.
```php
-use Cake\Chronos\Date;
+use Cake\Chronos\ChronosDate;
-$today = new Date();
+$today = new ChronosDate();
echo $today;
// Outputs '2015-10-21'
diff --git a/app/vendor/cakephp/chronos/compare-data.json b/app/vendor/cakephp/chronos/compare-data.json
new file mode 100644
index 000000000..0619f37fa
--- /dev/null
+++ b/app/vendor/cakephp/chronos/compare-data.json
@@ -0,0 +1 @@
+{"2x":{"Cake\\Chronos\\Chronos":["__construct","toMutable","copy","setTestNow","getTestNow","hasTestNow","createInterval","__debugInfo","checkTypes","__wakeup","__set_state","createFromFormat","getLastErrors","format","getTimezone","getOffset","getTimestamp","diff","modify","add","sub","setTimezone","setTime","setDate","setISODate","setTimestamp","createFromMutable","createFromInterface","getWeekendDays","setWeekendDays","eq","equals","ne","notEquals","gt","greaterThan","gte","greaterThanOrEquals","lt","lessThan","lte","lessThanOrEquals","between","closest","farthest","min","max","isWeekday","isWeekend","isYesterday","isToday","isTomorrow","isNextWeek","isLastWeek","isNextMonth","isLastMonth","isNextYear","isLastYear","isFuture","isPast","isLeapYear","isSameDay","isSunday","isMonday","isTuesday","isWednesday","isThursday","isFriday","isSaturday","isThisWeek","isThisMonth","isThisYear","isBirthday","wasWithinLast","isWithinNext","isMutable","diffInYears","diffInMonths","diffInMonthsIgnoreTimezone","diffInWeeks","diffInDays","diffInDaysFiltered","diffInHoursFiltered","diffFiltered","diffInWeekdays","diffInWeekendDays","diffInHours","diffInMinutes","diffInSeconds","secondsSinceMidnight","secondsUntilEndOfDay","fromNow","diffForHumans","diffFormatter","instance","parse","now","today","tomorrow","yesterday","maxValue","minValue","create","createFromDate","createFromTime","createFromArray","createFromTimestamp","createFromTimestampUTC","resetToStringFormat","setToStringFormat","__toString","toDateString","toFormattedDateString","toTimeString","toDateTimeString","toDayDateTimeString","toAtomString","toCookieString","toIso8601String","toRfc822String","toRfc850String","toRfc1036String","toRfc1123String","toRfc2822String","toRfc3339String","toRssString","toW3cString","toUnixString","toQuarter","toWeek","__get","__isset","getWeekStartsAt","setWeekStartsAt","getWeekEndsAt","setWeekEndsAt","setDateTime","setTimeFromTimeString","timestamp","year","month","day","hour","minute","second","microsecond","addYears","addYear","subYears","subYear","addYearsWithOverflow","addYearWithOverflow","subYearsWithOverflow","subYearWithOverflow","addMonths","addMonth","subMonth","subMonths","addMonthsWithOverflow","addMonthWithOverflow","subMonthsWithOverflow","subMonthWithOverflow","addDays","addDay","subDay","subDays","addWeekdays","addWeekday","subWeekdays","subWeekday","addWeeks","addWeek","subWeek","subWeeks","addHours","addHour","subHour","subHours","addMinutes","addMinute","subMinute","subMinutes","addSeconds","addSecond","subSecond","subSeconds","startOfDay","endOfDay","startOfMonth","endOfMonth","startOfYear","endOfYear","startOfDecade","endOfDecade","startOfCentury","endOfCentury","startOfWeek","endOfWeek","next","previous","firstOfMonth","lastOfMonth","nthOfMonth","firstOfQuarter","lastOfQuarter","nthOfQuarter","firstOfYear","lastOfYear","nthOfYear","average","hasRelativeKeywords","timezone","tz"],"Cake\\Chronos\\ChronosDate":["__construct","toMutable","__debugInfo","create","add","sub","modify","setTimestamp","hour","minute","second","microsecond","__wakeup","__set_state","createFromFormat","getLastErrors","format","getTimezone","getOffset","getTimestamp","diff","setTimezone","setTime","setDate","setISODate","createFromMutable","createFromInterface","getWeekendDays","setWeekendDays","eq","equals","ne","notEquals","gt","greaterThan","gte","greaterThanOrEquals","lt","lessThan","lte","lessThanOrEquals","between","closest","farthest","min","max","isWeekday","isWeekend","isYesterday","isToday","isTomorrow","isNextWeek","isLastWeek","isNextMonth","isLastMonth","isNextYear","isLastYear","isFuture","isPast","isLeapYear","isSameDay","isSunday","isMonday","isTuesday","isWednesday","isThursday","isFriday","isSaturday","isThisWeek","isThisMonth","isThisYear","isBirthday","wasWithinLast","isWithinNext","isMutable","copy","diffInYears","diffInMonths","diffInMonthsIgnoreTimezone","diffInWeeks","diffInDays","diffInDaysFiltered","diffInHoursFiltered","diffFiltered","diffInWeekdays","diffInWeekendDays","diffInHours","diffInMinutes","diffInSeconds","secondsSinceMidnight","secondsUntilEndOfDay","fromNow","diffForHumans","diffFormatter","instance","parse","now","today","tomorrow","yesterday","maxValue","minValue","createFromDate","createFromTime","createFromArray","createFromTimestamp","createFromTimestampUTC","resetToStringFormat","setToStringFormat","__toString","toDateString","toFormattedDateString","toTimeString","toDateTimeString","toDayDateTimeString","toAtomString","toCookieString","toIso8601String","toRfc822String","toRfc850String","toRfc1036String","toRfc1123String","toRfc2822String","toRfc3339String","toRssString","toW3cString","toUnixString","toQuarter","toWeek","timezone","tz","hasRelativeKeywords","__get","__isset","getWeekStartsAt","setWeekStartsAt","getWeekEndsAt","setWeekEndsAt","setDateTime","setTimeFromTimeString","timestamp","year","month","day","addYears","addYear","subYears","subYear","addYearsWithOverflow","addYearWithOverflow","subYearsWithOverflow","subYearWithOverflow","addMonths","addMonth","subMonth","subMonths","addMonthsWithOverflow","addMonthWithOverflow","subMonthsWithOverflow","subMonthWithOverflow","addDays","addDay","subDay","subDays","addWeekdays","addWeekday","subWeekdays","subWeekday","addWeeks","addWeek","subWeek","subWeeks","addHours","addHour","subHour","subHours","addMinutes","addMinute","subMinute","subMinutes","addSeconds","addSecond","subSecond","subSeconds","startOfDay","endOfDay","startOfMonth","endOfMonth","startOfYear","endOfYear","startOfDecade","endOfDecade","startOfCentury","endOfCentury","startOfWeek","endOfWeek","next","previous","firstOfMonth","lastOfMonth","nthOfMonth","firstOfQuarter","lastOfQuarter","nthOfQuarter","firstOfYear","lastOfYear","nthOfYear","average","setTestNow","getTestNow","hasTestNow"]},"3x":{"Cake\\Chronos\\Chronos":["__construct","setTestNow","getTestNow","hasTestNow","hasRelativeKeywords","getWeekendDays","setWeekendDays","getWeekStartsAt","setWeekStartsAt","getWeekEndsAt","setWeekEndsAt","diffFormatter","instance","parse","now","today","tomorrow","yesterday","maxValue","minValue","create","createFromDate","createFromTime","createFromFormat","createFromArray","createFromTimestamp","createFromTimestampUTC","createInterval","setDateTime","setDate","setTime","modify","diff","format","getOffset","setTimestamp","getTimestamp","setTimezone","getTimezone","setTimeFromTimeString","timestamp","year","month","day","hour","minute","second","microsecond","addYears","subYears","addYearsWithOverflow","subYearsWithOverflow","addMonths","subMonths","addMonthsWithOverflow","subMonthsWithOverflow","addDays","subDays","addWeekdays","subWeekdays","addWeeks","subWeeks","addHours","subHours","addMinutes","subMinutes","addSeconds","subSeconds","startOfDay","endOfDay","startOfMonth","endOfMonth","startOfYear","endOfYear","startOfDecade","endOfDecade","startOfCentury","endOfCentury","startOfWeek","endOfWeek","next","previous","firstOfMonth","lastOfMonth","nthOfMonth","firstOfQuarter","lastOfQuarter","nthOfQuarter","firstOfYear","lastOfYear","nthOfYear","equals","notEquals","greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals","between","closest","farthest","min","max","average","isWeekday","isWeekend","isYesterday","isToday","isTomorrow","isNextWeek","isLastWeek","isNextMonth","isLastMonth","isNextYear","isLastYear","isFuture","isPast","isLeapYear","isSameDay","isSunday","isMonday","isTuesday","isWednesday","isThursday","isFriday","isSaturday","isThisWeek","isThisMonth","isThisYear","isBirthday","wasWithinLast","isWithinNext","diffFiltered","diffInYears","diffInMonths","diffInMonthsIgnoreTimezone","diffInWeeks","diffInDays","diffInDaysFiltered","diffInHoursFiltered","diffInWeekdays","diffInWeekendDays","diffInHours","diffInMinutes","diffInSeconds","secondsSinceMidnight","secondsUntilEndOfDay","fromNow","diffForHumans","__get","__isset","__debugInfo","resetToStringFormat","setToStringFormat","__toString","toDateString","toFormattedDateString","toTimeString","toDateTimeString","toDayDateTimeString","toAtomString","toCookieString","toIso8601String","toRfc822String","toRfc850String","toRfc1036String","toRfc1123String","toRfc2822String","toRfc3339String","toRssString","toW3cString","toUnixString","toQuarter","toWeek"],"Cake\\Chronos\\ChronosDate":["__construct","now","today","tomorrow","yesterday","parse","create","createFromFormat","createFromArray","diffFormatter","add","sub","modify","setDate","diff","format","year","month","day","addYears","subYears","addYearsWithOverflow","subYearsWithOverflow","addMonths","subMonths","addMonthsWithOverflow","subMonthsWithOverflow","addDays","subDays","addWeekdays","subWeekdays","addWeeks","subWeeks","startOfMonth","endOfMonth","startOfYear","endOfYear","startOfDecade","endOfDecade","startOfCentury","endOfCentury","startOfWeek","endOfWeek","next","previous","firstOfMonth","lastOfMonth","nthOfMonth","firstOfQuarter","lastOfQuarter","nthOfQuarter","firstOfYear","lastOfYear","nthOfYear","equals","notEquals","greaterThan","greaterThanOrEquals","lessThan","lessThanOrEquals","between","closest","farthest","isWeekday","isWeekend","isYesterday","isToday","isTomorrow","isNextWeek","isLastWeek","isNextMonth","isLastMonth","isNextYear","isLastYear","isFuture","isPast","isLeapYear","isSunday","isMonday","isTuesday","isWednesday","isThursday","isFriday","isSaturday","wasWithinLast","isWithinNext","diffFiltered","diffInYears","diffInMonths","diffInWeeks","diffInDays","diffInDaysFiltered","diffInWeekdays","diffInWeekendDays","diffForHumans","__get","__isset","__debugInfo","resetToStringFormat","setToStringFormat","__toString","toDateString","toFormattedDateString","toTimeString","toDateTimeString","toDayDateTimeString","toAtomString","toCookieString","toIso8601String","toRfc822String","toRfc850String","toRfc1036String","toRfc1123String","toRfc2822String","toRfc3339String","toRssString","toW3cString","toUnixString","toQuarter","toWeek"]}}
\ No newline at end of file
diff --git a/app/vendor/cakephp/chronos/docs.Dockerfile b/app/vendor/cakephp/chronos/docs.Dockerfile
index 032ed39c6..7f6a1263e 100644
--- a/app/vendor/cakephp/chronos/docs.Dockerfile
+++ b/app/vendor/cakephp/chronos/docs.Dockerfile
@@ -1,5 +1,5 @@
# Generate the HTML output.
-FROM markstory/cakephp-docs-builder as builder
+FROM ghcr.io/cakephp/docs-builder as builder
RUN pip install git+https://github.com/sphinx-contrib/video.git@master
@@ -11,7 +11,7 @@ RUN cd /data/docs-builder && \
make website LANGS="$LANGS" SOURCE=/data/docs DEST=/data/website
# Build a small nginx container with just the static site in it.
-FROM markstory/cakephp-docs-builder:runtime as runtime
+FROM ghcr.io/cakephp/docs-builder:runtime as runtime
ENV LANGS="en fr ja pt"
ENV SEARCH_SOURCE="/usr/share/nginx/html"
diff --git a/app/vendor/cakephp/chronos/docs/en/2-4-upgrade-guide.rst b/app/vendor/cakephp/chronos/docs/en/2-4-upgrade-guide.rst
new file mode 100644
index 000000000..3dedf799f
--- /dev/null
+++ b/app/vendor/cakephp/chronos/docs/en/2-4-upgrade-guide.rst
@@ -0,0 +1,78 @@
+2.4 Upgrade Guide
+#################
+
+Chronos 2.4 introduces a number of deprecations that will help you prepare your
+application for the upcoming Chronos 3.x release. This guide covers the
+deprecations introduced in 2.4 and gives a preview of what to expect in 3.0.
+
+No more mutable objects
+=======================
+
+Chronos was an early adopter of PHP's immutable datetime objects. With PHP
+moving away from mutable datetime objects both ``Cake\Chronos\MutableDate`` and
+``Cake\Chronos\MutaleDateTime`` are deprecated and will be removed in 3.0.0.
+
+To upgrade, replace usage of ``MutableDate`` with ``ChronosDate`` and
+``MutableDateTime`` with ``Chronos``. When modifying datetimes be sure to
+always re-assign the variable with the datetime::
+
+ // Mutate in place
+ $datetime->modify('+1 days');
+
+ // Immutable objects must re-assign
+ $datetime = $datetime->modify('+1 days');
+
+ChronosInterface deprecated
+===========================
+
+Having a consistent interface between date and datetime objects has proven to be
+problematic. It created an illusion of compatibility between mutable and
+immutable objects and date and datetime objects. Because the
+``ChronosInterface`` didn't and can't really deliver on the goals of interfaces
+it is deprecated, and will be removed in 3.0. To update your code replace
+references to ``ChronosInterface`` with either a reference to
+``Cake\Chronos\Chronos`` for datetime instances or ``Cake\Chronos\ChronosDate``
+for date instances.
+
+Fewer mutation methods
+======================
+
+For historical reasons the chronos classes included many redundant methods. For
+example ``addYear()`` and ``addYears()``. In 2.4.0, all of the singular methods
+e.g. ``addYear()`` are deprecated. Instead use the plural versions of the
+methods e.g. ``addYears()``.
+
+Simpler Date class
+==================
+
+When date abstractions were introduced they shared an interfaces with DateTime
+classes. This resulted in many no-op methods on dates. For example calling
+``setTime()`` on a date would have no effect. In 2.4, all time related methods
+(including timezones) are deprecated on date instances. If your application
+needs to use the time component of a date, you should use ``Chronos`` instead.
+
+Upcoming removals in 3.0
+========================
+
+The following changes will arrive in 3.0, and don't have a simple deprecation
+path. Unfortunately these changes will result in hard breaks in 3.0.
+
+Carbon aliases removed
+----------------------
+
+When Chronos was started Carbon had no active maintainers. We included
+compatiblity aliases in Chronos to help users migrate from the unmaintained
+Carbon library to Chronos. Presently, Carbon has active maintainers and we no
+longer feel the need to provide shims.
+
+No longer extending DateTime
+----------------------------
+
+Historically Chronos has extended PHP's ``DateTime`` classes. This has proven to
+be problematic especially for date classes. While Chronos will not extend
+PHP's ``DateTime`` classes or implements the ``DateTimeInterface``, if a method does
+not emit a deprecation in 2.4.0 it will continue to work in 3.0.
+
+To adapt to this change before upgrading to 3.0 replace references to PHP's
+``DateTime`` and ``DateTimeInterface`` and use ``Chronos`` or ``ChronosDate``
+instead.
diff --git a/app/vendor/cakephp/chronos/docs/en/contents.rst b/app/vendor/cakephp/chronos/docs/en/contents.rst
index 10625a2c6..77906664c 100644
--- a/app/vendor/cakephp/chronos/docs/en/contents.rst
+++ b/app/vendor/cakephp/chronos/docs/en/contents.rst
@@ -3,5 +3,6 @@
:caption: CakePHP Chronos
/index
+ /2-4-upgrade-guide
- API
\ No newline at end of file
+ API
diff --git a/app/vendor/cakephp/chronos/docs/en/index.rst b/app/vendor/cakephp/chronos/docs/en/index.rst
index dabb9b267..44668765c 100644
--- a/app/vendor/cakephp/chronos/docs/en/index.rst
+++ b/app/vendor/cakephp/chronos/docs/en/index.rst
@@ -26,11 +26,9 @@ Chronos provides 5 classes that cover mutable and immutable date/time variants
and extensions to ``DateInterval``.
* ``Cake\Chronos\Chronos`` is an immutable *date and time* object.
-* ``Cake\Chronos\Date`` is a immutable *date* object.
+* ``Cake\Chronos\ChronosDate`` is a immutable *date* object.
* ``Cake\Chronos\MutableDateTime`` is a mutable *date and time* object.
* ``Cake\Chronos\MutableDate`` is a mutable *date* object.
-* ``Cake\Chronos\ChronosInterval`` is an extension to the ``DateInterval``
- object.
Lastly, if you want to typehint against Chronos-provided date/time objects you
should use ``Cake\Chronos\ChronosInterface``. All of the date and time objects
@@ -97,13 +95,13 @@ Date Objects
PHP only provides a single DateTime object. Representing calendar dates can be
a bit awkward with this class as it includes timezones, and time components that
don't really belong in the concept of a 'day'. Chronos provides a ``Date``
-object that allows you to represent dates. The time and timezone for these
-objects is always fixed to ``00:00:00 UTC`` and all formatting/difference
-methods operate at the day resolution::
+object that allows you to represent dates. The time for date objects is always
+fixed to ``00:00:00``, and the timezone is set to the server local timezone. All
+formatting/difference methods operate at the day resolution::
- use Cake\Chronos\Date;
+ use Cake\Chronos\ChronosDate;
- $today = Date::today();
+ $today = ChronosDate::today();
// Changes to the time/timezone are ignored.
$today->modify('+1 hours');
@@ -117,7 +115,7 @@ time zone to use for current time such as ``now()`` or ``today()``::
use Cake\Chronos\Date:
// Takes the current date from Asia/Tokyo time zone
- $today = Date::today('Asia/Tokyo');
+ $today = ChronosDate::today('Asia/Tokyo');
Modifier Methods
----------------
@@ -302,7 +300,7 @@ process you can include the following::
Chronos::setTestNow(Chronos::now());
MutableDateTime::setTestNow(MutableDateTime::now());
- Date::setTestNow(Date::now());
+ ChronosDate::setTestNow(ChronosDate::now());
MutableDate::setTestNow(MutableDate::now());
This will fix the current time of all objects to be the point at which the test
diff --git a/app/vendor/cakephp/chronos/docs/fr/index.rst b/app/vendor/cakephp/chronos/docs/fr/index.rst
index 325767dcc..b3d76723a 100644
--- a/app/vendor/cakephp/chronos/docs/fr/index.rst
+++ b/app/vendor/cakephp/chronos/docs/fr/index.rst
@@ -27,11 +27,9 @@ par PHP. Chronos fournit 5 classes qui gèrent les variantes mutables et
immutables de date/time et les extensions de ``DateInterval``.
* ``Cake\Chronos\Chronos`` est un objet de *date et heure* immutable.
-* ``Cake\Chronos\Date`` est un objet de *date* immutable.
+* ``Cake\Chronos\ChronosDate`` est un objet de *date* immutable.
* ``Cake\Chronos\MutableDateTime`` est un objet de *date et heure* mutable.
* ``Cake\Chronos\MutableDate`` est un objet de *date* mutable.
-* ``Cake\Chronos\ChronosInterval`` est une extension pour l'objet
- ``DateInterval``.
Enfin si vous voulez typer selon les objets date/time fournis par Chronos,
vous devez utiliser ``Cake\Chronos\ChronosInterface``. Tous les objets date et
@@ -105,9 +103,9 @@ de représenter les dates. Les time et timezone pour ces objets sont toujours
fixés à ``00:00:00 UTC`` et toutes les méthodes de formatage/différence
fonctionnent au niveau du jour::
- use Cake\Chronos\Date;
+ use Cake\Chronos\ChronosDate;
- $today = Date::today();
+ $today = ChronosDate::today();
// Les changements selon le time/timezone sont ignorés.
$today->modify('+1 hours');
@@ -122,7 +120,7 @@ spécifier le fuseau à utiliser pour l'heure courante telle que ``now()`` ou
use Cake\Chronos\Date:
// Prend l'heure courante pour le fuseau horaire de Tokyo
- $today = Date::today('Asia/Tokyo');
+ $today = ChronosDate::today('Asia/Tokyo');
Méthodes de Modification
@@ -313,7 +311,7 @@ vous pouvez inclure ce qui suit::
Chronos::setTestNow(Chronos::now());
MutableDateTime::setTestNow(MutableDateTime::now());
- Date::setTestNow(Date::now());
+ ChronosDate::setTestNow(ChronosDate::now());
MutableDate::setTestNow(MutableDate::now());
Ceci va fixer le time courant de tous les objets selon le moment où la suite de
diff --git a/app/vendor/cakephp/chronos/docs/ja/index.rst b/app/vendor/cakephp/chronos/docs/ja/index.rst
index 9e1db71d0..d8a8974bd 100644
--- a/app/vendor/cakephp/chronos/docs/ja/index.rst
+++ b/app/vendor/cakephp/chronos/docs/ja/index.rst
@@ -26,7 +26,7 @@ Chronos は ``DateInterval`` の拡張機能および、ミュータブル(変
イミュータブル(変更不可)な 日付/時刻 の派生系をカバーする5つのクラスを提供します。
* ``Cake\Chronos\Chronos`` はイミュータブルな *日付と時刻* オブジェクト。
-* ``Cake\Chronos\Date`` はイミュータブルな *日付* オブジェクト。
+* ``Cake\Chronos\ChronosDate`` はイミュータブルな *日付* オブジェクト。
* ``Cake\Chronos\MutableDateTime`` はミュータブルな *日付と時刻* オブジェクト。
* ``Cake\Chronos\MutableDate`` はミュータブルな *日付* オブジェクト。
* ``Cake\Chronos\ChronosInterval`` は ``DateInterval`` の拡張機能。
@@ -100,9 +100,9 @@ Chronos は日時表現のための ``Date`` オブジェクトを提供しま
これらのオブジェクトの時間とタイムゾーンは常に ``00:00:00 UTC`` に固定されており、
全ての書式/差分のメソッドは一日単位で動作します。 ::
- use Cake\Chronos\Date;
+ use Cake\Chronos\ChronosDate;
- $today = Date::today();
+ $today = ChronosDate::today();
// 時間/タイムゾーンの変更は無視されます
$today->modify('+1 hours');
@@ -286,7 +286,7 @@ Chronos は、出力した日時オブジェクトを表示するための多く
Chronos::setTestNow(Chronos::now());
MutableDateTime::setTestNow(MutableDateTime::now());
- Date::setTestNow(Date::now());
+ ChronosDate::setTestNow(ChronosDate::now());
MutableDate::setTestNow(MutableDate::now());
これでテストスイートが開始された時点で全てのオブジェクトの現在時刻を修正します。
diff --git a/app/vendor/cakephp/chronos/docs/pt/index.rst b/app/vendor/cakephp/chronos/docs/pt/index.rst
index d4a90af83..643a5e6c5 100644
--- a/app/vendor/cakephp/chronos/docs/pt/index.rst
+++ b/app/vendor/cakephp/chronos/docs/pt/index.rst
@@ -27,7 +27,7 @@ cobrem variantes de data/hora mutáveis e imutáveis e uma extensão do objeto
``DateInterval``.
* ``Cake\Chronos\Chronos`` é um objeto *date & time* imutável.
-* ``Cake\Chronos\Date`` é um objeto *date* imutável.
+* ``Cake\Chronos\ChronosDate`` é um objeto *date* imutável.
* ``Cake\Chronos\MutableDateTime`` é um objeto *date and time* mutável.
* ``Cake\Chronos\MutableDate`` é um objeto *date* mutável.
* ``Cake\Chronos\ChronosInterval`` é uma extensão do objeto ``DateInterval``.
@@ -101,9 +101,9 @@ pode ser um pouco desconfortável por essa classe, uma vez que ela inclui
zona desse objeto é sempre fixado em ``00:00:00 UTC`` e todos os métodos de
formatação/diferença operam sob a resolução de dia::
- use Cake\Chronos\Date;
+ use Cake\Chronos\ChronosDate;
- $today = Date::today();
+ $today = ChronosDate::today();
// Mudanças na hora/timezone são ignoradas
$today->modify('+1 hours');
@@ -268,7 +268,7 @@ de testes, você pode incluir o seguinte::
Chronos::setTestNow(Chronos::now());
MutableDateTime::setTestNow(MutableDateTime::now());
- Date::setTestNow(Date::now());
+ ChronosDate::setTestNow(ChronosDate::now());
MutableDate::setTestNow(MutableDate::now());
Isso irá corrigir a hora atual de todos os objetos para o momento em que o
diff --git a/app/vendor/cakephp/chronos/src/Chronos.php b/app/vendor/cakephp/chronos/src/Chronos.php
index f8ddf7384..3bb970f26 100644
--- a/app/vendor/cakephp/chronos/src/Chronos.php
+++ b/app/vendor/cakephp/chronos/src/Chronos.php
@@ -2,18 +2,19 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos;
+use DateInterval;
use DateTimeImmutable;
use DateTimeZone;
@@ -139,6 +140,8 @@ public function __construct($time = 'now', $tz = null)
*/
public function toMutable(): MutableDateTime
{
+ trigger_error('2.5 Mutable classes will be removed in 3.0', E_USER_DEPRECATED);
+
return MutableDateTime::instance($this);
}
@@ -197,6 +200,70 @@ public static function hasTestNow(): bool
return static::$testNow !== null;
}
+ /**
+ * Create a new DateInterval instance from specified values.
+ *
+ * @param int|null $years The year to use.
+ * @param int|null $months The month to use.
+ * @param int|null $weeks The week to use.
+ * @param int|null $days The day to use.
+ * @param int|null $hours The hours to use.
+ * @param int|null $minutes The minutes to use.
+ * @param int|null $seconds The seconds to use.
+ * @param int|null $microseconds The microseconds to use.
+ * @return \DateInterval
+ */
+ public static function createInterval(
+ ?int $years = null,
+ ?int $months = null,
+ ?int $weeks = null,
+ ?int $days = null,
+ ?int $hours = null,
+ ?int $minutes = null,
+ ?int $seconds = null,
+ ?int $microseconds = null
+ ): DateInterval {
+ $spec = 'P';
+
+ if ($years) {
+ $spec .= $years . 'Y';
+ }
+ if ($months) {
+ $spec .= $months . 'M';
+ }
+ if ($weeks) {
+ $spec .= $weeks . 'W';
+ }
+ if ($days) {
+ $spec .= $days . 'D';
+ }
+
+ if ($hours || $minutes || $seconds) {
+ $spec .= 'T';
+ if ($hours) {
+ $spec .= $hours . 'H';
+ }
+ if ($minutes) {
+ $spec .= $minutes . 'M';
+ }
+ if ($seconds) {
+ $spec .= $seconds . 'S';
+ }
+ }
+
+ if ($microseconds && $spec === 'P') {
+ $spec .= 'T0S';
+ }
+
+ $instance = new DateInterval($spec);
+
+ if ($microseconds) {
+ $instance->f = $microseconds / 1000000;
+ }
+
+ return $instance;
+ }
+
/**
* Return properties for debugging.
*
@@ -212,4 +279,27 @@ public function __debugInfo(): array
return $properties;
}
+
+ /**
+ * Deprecation helper to compare types
+ *
+ * Future versions of Chronos will not support comparing date/datetimes to each other.
+ *
+ * @param object $first The first object.
+ * @param object|null $second The second object
+ * @return void
+ * @internal
+ */
+ public static function checkTypes(object $first, $second): void
+ {
+ $firstClass = get_class($first);
+ $secondClass = $second !== null ? get_class($second) : null;
+ if ($second !== null && $firstClass !== $secondClass) {
+ trigger_error(
+ "2.5 Comparing {$firstClass} and {$secondClass} is deprecated. " .
+ 'In 3.0 this functionality will be removed.',
+ E_USER_DEPRECATED
+ );
+ }
+ }
}
diff --git a/app/vendor/cakephp/chronos/src/ChronosDate.php b/app/vendor/cakephp/chronos/src/ChronosDate.php
new file mode 100644
index 000000000..f22474dc0
--- /dev/null
+++ b/app/vendor/cakephp/chronos/src/ChronosDate.php
@@ -0,0 +1,288 @@
+stripTime($time, $tz);
+ parent::__construct($time);
+
+ return;
+ }
+
+ $testNow = clone $testNow;
+ if ($tz !== null && $tz !== $testNow->getTimezone()) {
+ $testNow = $testNow->setTimezone($tz ?? date_default_timezone_get());
+ }
+ if (!empty($time)) {
+ $testNow = $testNow->modify($time);
+ }
+
+ $time = $testNow->format('Y-m-d 00:00:00');
+ parent::__construct($time);
+ }
+
+ /**
+ * Create a new mutable instance from current immutable instance.
+ *
+ * @return \Cake\Chronos\MutableDate
+ */
+ public function toMutable(): MutableDate
+ {
+ trigger_error('2.5 Mutable classes will be removed in 3.0', E_USER_DEPRECATED);
+
+ return MutableDate::instance($this);
+ }
+
+ /**
+ * Return properties for debugging.
+ *
+ * @return array
+ */
+ public function __debugInfo(): array
+ {
+ $properties = [
+ 'hasFixedNow' => static::hasTestNow(),
+ 'date' => $this->format('Y-m-d'),
+ ];
+
+ return $properties;
+ }
+
+ /**
+ * Create an instance from a specific date.
+ *
+ * @param int $year The year to create an instance with.
+ * @param int $month The month to create an instance with.
+ * @param int $day The day to create an instance with.
+ * @return static
+ */
+ public static function create(int $year, int $month, int $day)
+ {
+ $instance = static::createFromFormat(
+ 'Y-m-d',
+ sprintf('%s-%s-%s', 0, $month, $day)
+ );
+
+ return $instance->addYears($year);
+ }
+
+ /**
+ * Add an Interval to a Date
+ *
+ * Any changes to the time will cause an exception to be raised.
+ *
+ * @param \DateInterval $interval The interval to modify this date by.
+ * @return static A modified Date instance
+ */
+ #[\ReturnTypeWillChange]
+ public function add($interval)
+ {
+ if ($interval->f > 0 || $interval->s > 0 || $interval->i > 0 || $interval->h > 0) {
+ trigger_error('2.5 Adding intervals with time components will be removed in 3.0', E_USER_DEPRECATED);
+ }
+
+ return parent::add($interval)->setTime(0, 0, 0);
+ }
+
+ /**
+ * Subtract an Interval from a Date.
+ *
+ * Any changes to the time will cause an exception to be raised.
+ *
+ * @param \DateInterval $interval The interval to modify this date by.
+ * @return static A modified Date instance
+ */
+ #[\ReturnTypeWillChange]
+ public function sub($interval)
+ {
+ if ($interval->f > 0 || $interval->s > 0 || $interval->i > 0 || $interval->h > 0) {
+ trigger_error('2.5 Subtracting intervals with time components will be removed in 3.0', E_USER_DEPRECATED);
+ }
+
+ return parent::sub($interval)->setTime(0, 0, 0);
+ }
+
+ /**
+ * Creates a new instance with date modified according to DateTimeImmutable::modifier().
+ *
+ * Attempting to change a time component will raise an exception
+ *
+ * @param string $modifier Date modifier
+ * @return static
+ */
+ #[\ReturnTypeWillChange]
+ public function modify($modifier)
+ {
+ if (preg_match('/hour|minute|second/', $modifier)) {
+ trigger_error('2.5 Modifying dates with time values will be removed in 3.0', E_USER_DEPRECATED);
+ }
+
+ $new = parent::modify($modifier);
+ if ($new === false) {
+ throw new InvalidArgumentException('Unable to modify date using: ' . $modifier);
+ }
+
+ if ($new->format('H:i:s') !== '00:00:00') {
+ $new = $new->setTime(0, 0, 0);
+ }
+
+ return $new;
+ }
+
+ /**
+ * @inheritDoc
+ */
+ #[\ReturnTypeWillChange]
+ public function setTimestamp($value)
+ {
+ trigger_error('2.5 Setting timestamp values on Date values will be removed in 3.0', E_USER_DEPRECATED);
+
+ return parent::setTimestamp($value);
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function hour(int $value): ChronosInterface
+ {
+ trigger_error('2.5 Modifying hours on Date values will be removed in 3.0', E_USER_DEPRECATED);
+
+ return $this->setTime($value, $this->minute, $this->second);
+ }
+
+ /**
+ * Set the instance's minute
+ *
+ * @param int $value The minute value.
+ * @return static
+ */
+ public function minute(int $value): ChronosInterface
+ {
+ trigger_error('2.5 Modifying minutes on Date values will be removed in 3.0', E_USER_DEPRECATED);
+
+ return $this->setTime($this->hour, $value, $this->second);
+ }
+
+ /**
+ * Set the instance's second
+ *
+ * @param int $value The seconds value.
+ * @return static
+ */
+ public function second(int $value): ChronosInterface
+ {
+ trigger_error('2.5 Modifying second on Date values will be removed in 3.0', E_USER_DEPRECATED);
+
+ return $this->setTime($this->hour, $this->minute, $value);
+ }
+
+ /**
+ * Set the instance's microsecond
+ *
+ * @param int $value The microsecond value.
+ * @return static
+ */
+ public function microsecond(int $value): ChronosInterface
+ {
+ trigger_error('2.5 Modifying microsecond on Date values will be removed in 3.0', E_USER_DEPRECATED);
+
+ return $this->setTime($this->hour, $this->minute, $this->second, $value);
+ }
+}
+
+class_alias('Cake\Chronos\ChronosDate', 'Cake\Chronos\Date');
diff --git a/app/vendor/cakephp/chronos/src/ChronosInterface.php b/app/vendor/cakephp/chronos/src/ChronosInterface.php
index f074b4c15..8e8b5d139 100644
--- a/app/vendor/cakephp/chronos/src/ChronosInterface.php
+++ b/app/vendor/cakephp/chronos/src/ChronosInterface.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos;
diff --git a/app/vendor/cakephp/chronos/src/ChronosInterval.php b/app/vendor/cakephp/chronos/src/ChronosInterval.php
index 4f4464326..6330fab27 100644
--- a/app/vendor/cakephp/chronos/src/ChronosInterval.php
+++ b/app/vendor/cakephp/chronos/src/ChronosInterval.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos;
@@ -146,6 +146,10 @@ public function __construct(
if ($microseconds > 0) {
$this->f = $microseconds / 1000000;
}
+ trigger_error(
+ 'Since 2.4 ChronosInterval is deprecated. Use `Chronos::createInterval() instead.`',
+ E_USER_DEPRECATED
+ );
}
/**
diff --git a/app/vendor/cakephp/chronos/src/Date.php b/app/vendor/cakephp/chronos/src/Date.php
index 67b44a24e..68d436ca2 100644
--- a/app/vendor/cakephp/chronos/src/Date.php
+++ b/app/vendor/cakephp/chronos/src/Date.php
@@ -2,141 +2,14 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
-namespace Cake\Chronos;
-
-use DateTimeImmutable;
-use DateTimeZone;
-
-/**
- * An immutable date object that converts all time components into 00:00:00.
- *
- * This class is useful when you want to represent a calendar date and ignore times.
- * This means that timezone changes take no effect as a calendar date exists in all timezones
- * in each respective date.
- *
- * @property-read int $year
- * @property-read int $yearIso
- * @property-read int $month
- * @property-read int $day
- * @property-read int $hour
- * @property-read int $minute
- * @property-read int $second
- * @property-read int $micro
- * @property-read int $microsecond
- * @property-read int $timestamp seconds since the Unix Epoch
- * @property-read \DateTimeZone $timezone the current timezone
- * @property-read \DateTimeZone $tz alias of timezone
- * @property-read int $dayOfWeek 1 (for Monday) through 7 (for Sunday)
- * @property-read int $dayOfYear 0 through 365
- * @property-read int $weekOfMonth 1 through 5
- * @property-read int $weekOfYear ISO-8601 week number of year, weeks starting on Monday
- * @property-read int $daysInMonth number of days in the given month
- * @property-read int $age does a diffInYears() with default parameters
- * @property-read int $quarter the quarter of this instance, 1 - 4
- * @property-read int $offset the timezone offset in seconds from UTC
- * @property-read int $offsetHours the timezone offset in hours from UTC
- * @property-read bool $dst daylight savings time indicator, true if DST, false otherwise
- * @property-read bool $local checks if the timezone is local, true if local, false otherwise
- * @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise
- * @property-read string $timezoneName
- * @property-read string $tzName
- */
-class Date extends DateTimeImmutable implements ChronosInterface
-{
- use Traits\ComparisonTrait;
- use Traits\DifferenceTrait;
- use Traits\FactoryTrait;
- use Traits\FormattingTrait;
- use Traits\FrozenTimeTrait;
- use Traits\MagicPropertyTrait;
- use Traits\ModifierTrait;
- use Traits\TestingAidTrait;
-
- /**
- * Format to use for __toString method when type juggling occurs.
- *
- * @var string
- */
- protected static $toStringFormat = 'Y-m-d';
-
- /**
- * Create a new Immutable Date instance.
- *
- * You can specify the timezone for the $time parameter. This timezone will
- * not be used in any future modifications to the Date instance.
- *
- * The $timezone parameter is ignored if $time is a DateTimeInterface
- * instance.
- *
- * Please see the testing aids section (specifically static::setTestNow())
- * for more on the possibility of this constructor returning a test instance.
- *
- * Date instances lack time components, however due to limitations in PHP's
- * internal Datetime object the time will always be set to 00:00:00, and the
- * timezone will always be the server local time. Normalizing the timezone allows for
- * subtraction/addition to have deterministic results.
- *
- * @param \DateTimeInterface|string|int|null $time Fixed or relative time
- * @param \DateTimeZone|string|null $tz The timezone in which the date is taken
- */
- public function __construct($time = 'now', $tz = null)
- {
- if ($tz !== null) {
- $tz = $tz instanceof DateTimeZone ? $tz : new DateTimeZone($tz);
- }
-
- $testNow = Chronos::getTestNow();
- if ($testNow === null || !static::isRelativeOnly($time)) {
- $time = $this->stripTime($time, $tz);
- parent::__construct($time);
-
- return;
- }
-
- $testNow = clone $testNow;
- if ($tz !== $testNow->getTimezone()) {
- $testNow = $testNow->setTimezone($tz ?? date_default_timezone_get());
- }
- if (!empty($time)) {
- $testNow = $testNow->modify($time);
- }
-
- $time = $testNow->format('Y-m-d 00:00:00');
- parent::__construct($time);
- }
-
- /**
- * Create a new mutable instance from current immutable instance.
- *
- * @return \Cake\Chronos\MutableDate
- */
- public function toMutable(): MutableDate
- {
- return MutableDate::instance($this);
- }
-
- /**
- * Return properties for debugging.
- *
- * @return array
- */
- public function __debugInfo(): array
- {
- $properties = [
- 'hasFixedNow' => static::hasTestNow(),
- 'date' => $this->format('Y-m-d'),
- ];
-
- return $properties;
- }
-}
+class_exists('Cake\Chronos\ChronosDate');
diff --git a/app/vendor/cakephp/chronos/src/DifferenceFormatter.php b/app/vendor/cakephp/chronos/src/DifferenceFormatter.php
index ad10c9582..c627dd9c5 100644
--- a/app/vendor/cakephp/chronos/src/DifferenceFormatter.php
+++ b/app/vendor/cakephp/chronos/src/DifferenceFormatter.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos;
diff --git a/app/vendor/cakephp/chronos/src/DifferenceFormatterInterface.php b/app/vendor/cakephp/chronos/src/DifferenceFormatterInterface.php
index e94892604..875a2298e 100644
--- a/app/vendor/cakephp/chronos/src/DifferenceFormatterInterface.php
+++ b/app/vendor/cakephp/chronos/src/DifferenceFormatterInterface.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos;
diff --git a/app/vendor/cakephp/chronos/src/MutableDate.php b/app/vendor/cakephp/chronos/src/MutableDate.php
index 7cbac3cb9..c8c5f2793 100644
--- a/app/vendor/cakephp/chronos/src/MutableDate.php
+++ b/app/vendor/cakephp/chronos/src/MutableDate.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos;
@@ -49,6 +49,7 @@
* @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise
* @property-read string $timezoneName
* @property-read string $tzName
+ * @deprecated 2.4.0 Use immutable \Cake\Chronos\ChronosDate instead
*/
class MutableDate extends DateTime implements ChronosInterface
{
@@ -117,11 +118,11 @@ public function __construct($time = 'now', $tz = null)
/**
* Create a new immutable instance from current mutable instance.
*
- * @return \Cake\Chronos\Date
+ * @return \Cake\Chronos\ChronosDate
*/
- public function toImmutable(): Date
+ public function toImmutable(): ChronosDate
{
- return Date::instance($this);
+ return ChronosDate::instance($this);
}
/**
diff --git a/app/vendor/cakephp/chronos/src/MutableDateTime.php b/app/vendor/cakephp/chronos/src/MutableDateTime.php
index a01865734..5ad91e932 100644
--- a/app/vendor/cakephp/chronos/src/MutableDateTime.php
+++ b/app/vendor/cakephp/chronos/src/MutableDateTime.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos;
@@ -50,6 +50,7 @@
* @property-read bool $utc checks if the timezone is UTC, true if UTC, false otherwise
* @property-read string $timezoneName
* @property-read string $tzName
+ * @deprecated 2.4.0 Use immutable \Cake\Chronos\Chronos instead
*/
class MutableDateTime extends DateTime implements ChronosInterface
{
diff --git a/app/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php b/app/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php
index 5f076d540..677663a7c 100644
--- a/app/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php
@@ -2,18 +2,20 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
+use Cake\Chronos\Chronos;
+use Cake\Chronos\ChronosDate;
use Cake\Chronos\ChronosInterface;
use DateTime;
@@ -38,6 +40,10 @@ trait ComparisonTrait
*/
public static function getWeekendDays(): array
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 getWeekendDays() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return static::$weekendDays;
}
@@ -49,6 +55,10 @@ public static function getWeekendDays(): array
*/
public static function setWeekendDays(array $days): void
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 setWeekendDays() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
static::$weekendDays = $days;
}
@@ -57,10 +67,13 @@ public static function setWeekendDays(array $days): void
*
* @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
* @return bool
+ * @deprecated 2.5 eq() is deprecated. Use equals() instead.
*/
public function eq(ChronosInterface $dt): bool
{
- return $this == $dt;
+ trigger_error('2.5 eq() is deprecated. Use equals() instead.', E_USER_DEPRECATED);
+
+ return $this->equals($dt);
}
/**
@@ -71,7 +84,7 @@ public function eq(ChronosInterface $dt): bool
*/
public function equals(ChronosInterface $dt)
{
- return $this->eq($dt);
+ return $this == $dt;
}
/**
@@ -79,10 +92,13 @@ public function equals(ChronosInterface $dt)
*
* @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
* @return bool
+ * @deprecated 2.5 ne() is deprecated. Use notEquals() instead.
*/
public function ne(ChronosInterface $dt): bool
{
- return !$this->eq($dt);
+ trigger_error('2.5 ne() is deprecated. Use notEquals() instead.', E_USER_DEPRECATED);
+
+ return $this->notEquals($dt);
}
/**
@@ -93,7 +109,7 @@ public function ne(ChronosInterface $dt): bool
*/
public function notEquals(ChronosInterface $dt)
{
- return $this->ne($dt);
+ return !$this->equals($dt);
}
/**
@@ -101,10 +117,13 @@ public function notEquals(ChronosInterface $dt)
*
* @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
* @return bool
+ * @deprecated 2.5 gt() is deprecated. Use greaterThan() instead.
*/
public function gt(ChronosInterface $dt): bool
{
- return $this > $dt;
+ trigger_error('2.5 gt() is deprecated. Use greaterThan() instead.', E_USER_DEPRECATED);
+
+ return $this->greaterThan($dt);
}
/**
@@ -115,7 +134,7 @@ public function gt(ChronosInterface $dt): bool
*/
public function greaterThan(ChronosInterface $dt)
{
- return $this->gt($dt);
+ return $this > $dt;
}
/**
@@ -123,10 +142,13 @@ public function greaterThan(ChronosInterface $dt)
*
* @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
* @return bool
+ * @deprecated 2.5 gte() is deprecated. Use greaterThanOrEquals() instead.
*/
public function gte(ChronosInterface $dt): bool
{
- return $this >= $dt;
+ trigger_error('2.5 gte() is deprecated. Use greaterThanOrEquals() instead.', E_USER_DEPRECATED);
+
+ return $this->greaterThanOrEquals($dt);
}
/**
@@ -137,7 +159,7 @@ public function gte(ChronosInterface $dt): bool
*/
public function greaterThanOrEquals(ChronosInterface $dt)
{
- return $this->gte($dt);
+ return $this >= $dt;
}
/**
@@ -145,10 +167,13 @@ public function greaterThanOrEquals(ChronosInterface $dt)
*
* @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
* @return bool
+ * @deprecated 2.5 lt() is deprecated. Use lessThan instead.
*/
public function lt(ChronosInterface $dt): bool
{
- return $this < $dt;
+ trigger_error('2.5 lt() is deprecated. Use lessThan() instead.', E_USER_DEPRECATED);
+
+ return $this->lessThan($dt);
}
/**
@@ -159,7 +184,7 @@ public function lt(ChronosInterface $dt): bool
*/
public function lessThan(ChronosInterface $dt)
{
- return $this->lt($dt);
+ return $this < $dt;
}
/**
@@ -167,10 +192,13 @@ public function lessThan(ChronosInterface $dt)
*
* @param \Cake\Chronos\ChronosInterface $dt The instance to compare with.
* @return bool
+ * @deprecated 2.5 lte() is deprecated. Use lessThanOrEquals() instead.
*/
public function lte(ChronosInterface $dt): bool
{
- return $this <= $dt;
+ trigger_error('2.5 lte() is deprecated. Use lessthanOrEquals() instead.', E_USER_DEPRECATED);
+
+ return $this->lessThanOrEquals($dt);
}
/**
@@ -181,7 +209,7 @@ public function lte(ChronosInterface $dt): bool
*/
public function lessThanOrEquals(ChronosInterface $dt)
{
- return $this->lte($dt);
+ return $this <= $dt;
}
/**
@@ -194,17 +222,18 @@ public function lessThanOrEquals(ChronosInterface $dt)
*/
public function between(ChronosInterface $dt1, ChronosInterface $dt2, bool $equal = true): bool
{
- if ($dt1->gt($dt2)) {
+ if ($dt1->greaterThan($dt2)) {
$temp = $dt1;
$dt1 = $dt2;
$dt2 = $temp;
}
+ Chronos::checkTypes($dt1, $dt2);
if ($equal) {
- return $this->gte($dt1) && $this->lte($dt2);
+ return $this->greaterThanOrEquals($dt1) && $this->lessThanOrEquals($dt2);
}
- return $this->gt($dt1) && $this->lt($dt2);
+ return $this->greaterThan($dt1) && $this->lessThan($dt2);
}
/**
@@ -241,7 +270,7 @@ public function min(?ChronosInterface $dt = null): ChronosInterface
{
$dt = $dt ?? static::now($this->tz);
- return $this->lt($dt) ? $this : $dt;
+ return $this->lessThan($dt) ? $this : $dt;
}
/**
@@ -254,7 +283,7 @@ public function max(?ChronosInterface $dt = null): ChronosInterface
{
$dt = $dt ?? static::now($this->tz);
- return $this->gt($dt) ? $this : $dt;
+ return $this->greaterThan($dt) ? $this : $dt;
}
/**
@@ -314,7 +343,7 @@ public function isTomorrow(): bool
*/
public function isNextWeek(): bool
{
- return $this->format('W o') === static::now($this->tz)->addWeek()->format('W o');
+ return $this->format('W o') === static::now($this->tz)->addWeeks(1)->format('W o');
}
/**
@@ -324,7 +353,7 @@ public function isNextWeek(): bool
*/
public function isLastWeek(): bool
{
- return $this->format('W o') === static::now($this->tz)->subWeek()->format('W o');
+ return $this->format('W o') === static::now($this->tz)->subWeeks(1)->format('W o');
}
/**
@@ -334,7 +363,7 @@ public function isLastWeek(): bool
*/
public function isNextMonth(): bool
{
- return $this->format('m Y') === static::now($this->tz)->addMonth()->format('m Y');
+ return $this->format('m Y') === static::now($this->tz)->addMonths(1)->format('m Y');
}
/**
@@ -344,7 +373,7 @@ public function isNextMonth(): bool
*/
public function isLastMonth(): bool
{
- return $this->format('m Y') === static::now($this->tz)->subMonth()->format('m Y');
+ return $this->format('m Y') === static::now($this->tz)->subMonths(1)->format('m Y');
}
/**
@@ -354,7 +383,7 @@ public function isLastMonth(): bool
*/
public function isNextYear(): bool
{
- return $this->year === static::now($this->tz)->addYear()->year;
+ return $this->year === static::now($this->tz)->addYears(1)->year;
}
/**
@@ -364,7 +393,7 @@ public function isNextYear(): bool
*/
public function isLastYear(): bool
{
- return $this->year === static::now($this->tz)->subYear()->year;
+ return $this->year === static::now($this->tz)->subYears(1)->year;
}
/**
@@ -374,7 +403,7 @@ public function isLastYear(): bool
*/
public function isFuture(): bool
{
- return $this->gt(static::now($this->tz));
+ return $this->greaterThan(static::now($this->tz));
}
/**
@@ -384,7 +413,7 @@ public function isFuture(): bool
*/
public function isPast(): bool
{
- return $this->lt(static::now($this->tz));
+ return $this->lessThan(static::now($this->tz));
}
/**
@@ -560,6 +589,8 @@ public function isWithinNext($timeInterval): bool
*/
public function isMutable(): bool
{
+ trigger_error('2.5 isMutable will be removed in the future', E_USER_DEPRECATED);
+
return $this instanceof DateTime;
}
}
diff --git a/app/vendor/cakephp/chronos/src/Traits/CopyTrait.php b/app/vendor/cakephp/chronos/src/Traits/CopyTrait.php
index 1bd8ede42..d026ed838 100644
--- a/app/vendor/cakephp/chronos/src/Traits/CopyTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/CopyTrait.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
diff --git a/app/vendor/cakephp/chronos/src/Traits/DifferenceTrait.php b/app/vendor/cakephp/chronos/src/Traits/DifferenceTrait.php
index 7d4c74e58..0fbf37cea 100644
--- a/app/vendor/cakephp/chronos/src/Traits/DifferenceTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/DifferenceTrait.php
@@ -2,20 +2,21 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
+use Cake\Chronos\Chronos;
+use Cake\Chronos\ChronosDate;
use Cake\Chronos\ChronosInterface;
-use Cake\Chronos\ChronosInterval;
use Cake\Chronos\DifferenceFormatter;
use Cake\Chronos\DifferenceFormatterInterface;
use DatePeriod;
@@ -49,6 +50,7 @@ trait DifferenceTrait
*/
public function diffInYears(?ChronosInterface $dt = null, bool $abs = true): int
{
+ Chronos::checkTypes($this, $dt);
$diff = $this->diff($dt ?? static::now($this->tz), $abs);
return $diff->invert ? -$diff->y : $diff->y;
@@ -63,6 +65,7 @@ public function diffInYears(?ChronosInterface $dt = null, bool $abs = true): int
*/
public function diffInMonths(?ChronosInterface $dt = null, bool $abs = true): int
{
+ Chronos::checkTypes($this, $dt);
$diff = $this->diff($dt ?? static::now($this->tz), $abs);
$months = $diff->y * ChronosInterface::MONTHS_PER_YEAR + $diff->m;
@@ -83,6 +86,9 @@ public function diffInMonths(?ChronosInterface $dt = null, bool $abs = true): in
*/
public function diffInMonthsIgnoreTimezone(?ChronosInterface $dt = null, bool $abs = true): int
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 diffInMonthsIgnoreTimezone() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
$utcTz = new DateTimeZone('UTC');
$source = new static($this->format('Y-m-d H:i:s.u'), $utcTz);
@@ -128,7 +134,9 @@ public function diffInDays(?ChronosInterface $dt = null, bool $abs = true): int
*/
public function diffInDaysFiltered(callable $callback, ?ChronosInterface $dt = null, bool $abs = true): int
{
- return $this->diffFiltered(ChronosInterval::day(), $callback, $dt, $abs);
+ $interval = Chronos::createInterval(0, 0, 0, 1);
+
+ return $this->diffFiltered($interval, $callback, $dt, $abs);
}
/**
@@ -141,20 +149,25 @@ public function diffInDaysFiltered(callable $callback, ?ChronosInterface $dt = n
*/
public function diffInHoursFiltered(callable $callback, ?ChronosInterface $dt = null, bool $abs = true): int
{
- return $this->diffFiltered(ChronosInterval::hour(), $callback, $dt, $abs);
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 diffInHoursFiltered() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+ $interval = Chronos::createInterval(0, 0, 0, 0, 1);
+
+ return $this->diffFiltered($interval, $callback, $dt, $abs);
}
/**
* Get the difference by the given interval using a filter callable
*
- * @param \Cake\Chronos\ChronosInterval $ci An interval to traverse by
+ * @param \Cake\Chronos\ChronosInterval|\DateInterval $ci An interval to traverse by
* @param callable $callback The callback to use for filtering.
* @param \Cake\Chronos\ChronosInterface|null $dt The instance to difference from.
* @param bool $abs Get the absolute of the difference
* @return int
*/
public function diffFiltered(
- ChronosInterval $ci,
+ $ci,
callable $callback,
?ChronosInterface $dt = null,
bool $abs = true
@@ -162,12 +175,19 @@ public function diffFiltered(
$start = $this;
$end = $dt ?? static::now($this->tz);
$inverse = false;
+ Chronos::checkTypes($start, $end);
if ($end < $start) {
$start = $end;
$end = $this;
$inverse = true;
}
+ // Hack around DatePeriod not including end values.
+ // When handling dates we need to convert to a DateTime
+ // and offset by 1 second.
+ if ($end instanceof ChronosDate) {
+ $end = (new Chronos($end))->modify('+1 second');
+ }
$period = new DatePeriod($start, $ci, $end);
$vals = array_filter(iterator_to_array($period), function (DateTimeInterface $date) use ($callback) {
@@ -216,6 +236,10 @@ public function diffInWeekendDays(?ChronosInterface $dt = null, bool $abs = true
*/
public function diffInHours(?ChronosInterface $dt = null, bool $abs = true): int
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 diffInHours() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return (int)(
$this->diffInSeconds($dt, $abs)
/ ChronosInterface::SECONDS_PER_MINUTE
@@ -232,6 +256,10 @@ public function diffInHours(?ChronosInterface $dt = null, bool $abs = true): int
*/
public function diffInMinutes(?ChronosInterface $dt = null, bool $abs = true): int
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 diffInMinutes() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return (int)($this->diffInSeconds($dt, $abs) / ChronosInterface::SECONDS_PER_MINUTE);
}
@@ -244,6 +272,10 @@ public function diffInMinutes(?ChronosInterface $dt = null, bool $abs = true): i
*/
public function diffInSeconds(?ChronosInterface $dt = null, bool $abs = true): int
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 diffInSeconds() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
$dt = $dt ?? static::now($this->tz);
$value = $dt->getTimestamp() - $this->getTimestamp();
@@ -257,6 +289,10 @@ public function diffInSeconds(?ChronosInterface $dt = null, bool $abs = true): i
*/
public function secondsSinceMidnight(): int
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 secondsSinceMidnight() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->diffInSeconds($this->copy()->startOfDay());
}
@@ -267,6 +303,10 @@ public function secondsSinceMidnight(): int
*/
public function secondsUntilEndOfDay(): int
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 secondsUntilEndOfDay() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->diffInSeconds($this->copy()->endOfDay());
}
@@ -278,6 +318,9 @@ public function secondsUntilEndOfDay(): int
*/
public static function fromNow($datetime)
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 fromNow() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
$timeNow = new static();
return $timeNow->diff($datetime);
diff --git a/app/vendor/cakephp/chronos/src/Traits/FactoryTrait.php b/app/vendor/cakephp/chronos/src/Traits/FactoryTrait.php
index 963624345..e37295d53 100644
--- a/app/vendor/cakephp/chronos/src/Traits/FactoryTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/FactoryTrait.php
@@ -2,18 +2,19 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
+use Cake\Chronos\ChronosDate;
use Cake\Chronos\ChronosInterface;
use DateTimeInterface;
use DateTimeZone;
@@ -40,6 +41,9 @@ trait FactoryTrait
*/
public static function instance(DateTimeInterface $dt): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 instance() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
if ($dt instanceof static) {
return clone $dt;
}
@@ -113,7 +117,12 @@ public static function yesterday($tz = null): ChronosInterface
*/
public static function maxValue(): ChronosInterface
{
- return static::createFromTimestampUTC(PHP_INT_MAX);
+ $instance = new static(PHP_INT_MAX);
+ if (get_class($instance) === ChronosDate::class) {
+ trigger_error('2.5 Using minValue() to create Date objects will be removed in 3.0', E_USER_DEPRECATED);
+ }
+
+ return $instance;
}
/**
@@ -125,7 +134,12 @@ public static function minValue(): ChronosInterface
{
$max = PHP_INT_SIZE === 4 ? PHP_INT_MAX : PHP_INT_MAX / 10;
- return static::createFromTimestampUTC(~$max);
+ $instance = new static(~$max);
+ if (get_class($instance) === ChronosDate::class) {
+ trigger_error('2.5 Using minValue() to create Date objects will be removed in 3.0', E_USER_DEPRECATED);
+ }
+
+ return $instance;
}
/**
@@ -199,6 +213,10 @@ public static function createFromDate(
?int $day = null,
$tz = null
): ChronosInterface {
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 createFromDate() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return static::create($year, $month, $day, null, null, null, null, $tz);
}
@@ -219,7 +237,12 @@ public static function createFromTime(
?int $microsecond = null,
$tz = null
): ChronosInterface {
- return static::create(null, null, null, $hour, $minute, $second, $microsecond, $tz);
+ $instance = static::create(null, null, null, $hour, $minute, $second, $microsecond, $tz);
+ if (get_class($instance) === ChronosDate::class) {
+ trigger_error('2.5 Using createFromTime to create Date objects will be removed in 3.0', E_USER_DEPRECATED);
+ }
+
+ return $instance;
}
/**
@@ -315,7 +338,15 @@ public static function createFromArray(array $values): ChronosInterface
*/
public static function createFromTimestamp(int $timestamp, $tz = null): ChronosInterface
{
- return static::now($tz)->setTimestamp($timestamp);
+ $instance = static::now($tz)->setTimestamp($timestamp);
+ if (get_class($instance) === ChronosDate::class) {
+ trigger_error(
+ '2.5 Creating Date instances with createFromTimestamp() will be removed in 3.0',
+ E_USER_DEPRECATED
+ );
+ }
+
+ return $instance;
}
/**
@@ -326,7 +357,13 @@ public static function createFromTimestamp(int $timestamp, $tz = null): ChronosI
*/
public static function createFromTimestampUTC(int $timestamp): ChronosInterface
{
- return new static($timestamp);
+ trigger_error(
+ '2.5 createFromTimestampUTC() is deprecated. Use createFromTimestamp() instead.',
+ E_USER_DEPRECATED
+ );
+ $instance = new static($timestamp);
+
+ return $instance;
}
/**
@@ -358,9 +395,16 @@ protected static function safeCreateDateTimeZone($object): DateTimeZone
public static function getLastErrors(): array
{
if (empty(static::$_lastErrors)) {
- return parent::getLastErrors();
+ return parent::getLastErrors() ?: [
+ 'warning_count' => 0,
+ 'warnings' => [],
+ 'error_count' => 0,
+ 'errors' => [],
+ ];
}
+ trigger_error('2.5 getLastErrors() is deprecated. Exceptions will be raised in 3.x', E_USER_DEPRECATED);
+
return static::$_lastErrors;
}
}
diff --git a/app/vendor/cakephp/chronos/src/Traits/FormattingTrait.php b/app/vendor/cakephp/chronos/src/Traits/FormattingTrait.php
index 61e3ba393..312eaf083 100644
--- a/app/vendor/cakephp/chronos/src/Traits/FormattingTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/FormattingTrait.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
diff --git a/app/vendor/cakephp/chronos/src/Traits/FrozenTimeTrait.php b/app/vendor/cakephp/chronos/src/Traits/FrozenTimeTrait.php
index fd0a001d5..198ab7b0e 100644
--- a/app/vendor/cakephp/chronos/src/Traits/FrozenTimeTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/FrozenTimeTrait.php
@@ -2,17 +2,18 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
+use Cake\Chronos\ChronosDate;
use Cake\Chronos\ChronosInterface;
use DateTimeImmutable;
use DateTimeInterface;
@@ -120,6 +121,10 @@ public function sub($interval): ChronosInterface
*/
public function timezone($value)
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 timezone() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this;
}
@@ -133,6 +138,10 @@ public function timezone($value)
*/
public function tz($value)
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 tz() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this;
}
@@ -147,6 +156,24 @@ public function tz($value)
#[ReturnTypeWillChange]
public function setTimezone($value)
{
+ if (static::class === ChronosDate::class) {
+ $trace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS, 5);
+ $found = false;
+ foreach ($trace as $frame) {
+ $found = in_array(
+ $frame['class'],
+ ['PHPUnit\Framework\Assert', 'PHPUnit\Framework\Constraint\IsEqual'],
+ true
+ );
+ if ($found) {
+ break;
+ }
+ }
+ if (!$found) {
+ trigger_error('2.5 setTimezone() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+ }
+
return $this;
}
@@ -162,6 +189,10 @@ public function setTimezone($value)
#[ReturnTypeWillChange]
public function setTimestamp($value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 setTimestamp() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return parent::setTimestamp($value)->setTime(0, 0, 0);
}
diff --git a/app/vendor/cakephp/chronos/src/Traits/MagicPropertyTrait.php b/app/vendor/cakephp/chronos/src/Traits/MagicPropertyTrait.php
index 7c01449a2..981e5f68a 100644
--- a/app/vendor/cakephp/chronos/src/Traits/MagicPropertyTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/MagicPropertyTrait.php
@@ -2,16 +2,16 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice. Provides various operator methods for datetime
* objects.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
diff --git a/app/vendor/cakephp/chronos/src/Traits/ModifierTrait.php b/app/vendor/cakephp/chronos/src/Traits/ModifierTrait.php
index adf177d7e..c2624d3dd 100644
--- a/app/vendor/cakephp/chronos/src/Traits/ModifierTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/ModifierTrait.php
@@ -2,18 +2,19 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
+use Cake\Chronos\ChronosDate;
use Cake\Chronos\ChronosInterface;
use ReturnTypeWillChange;
@@ -65,6 +66,10 @@ trait ModifierTrait
*/
public static function getWeekStartsAt(): int
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 getWeekStartsAt() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return static::$weekStartsAt;
}
@@ -76,6 +81,10 @@ public static function getWeekStartsAt(): int
*/
public static function setWeekStartsAt(int $day): void
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 getWeekStartsAt() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
static::$weekStartsAt = $day;
}
@@ -86,6 +95,10 @@ public static function setWeekStartsAt(int $day): void
*/
public static function getWeekEndsAt(): int
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 getWeekEndsAt() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return static::$weekEndsAt;
}
@@ -97,6 +110,10 @@ public static function getWeekEndsAt(): int
*/
public static function setWeekEndsAt(int $day): void
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 setWeekEndsAt() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
static::$weekEndsAt = $day;
}
@@ -149,6 +166,10 @@ public function setDateTime(
int $minute,
int $second = 0
): ChronosInterface {
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 setDateTime() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->setDate($year, $month, $day)->setTime($hour, $minute, $second);
}
@@ -160,6 +181,9 @@ public function setDateTime(
*/
public function setTimeFromTimeString(string $time): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 setTimeFromTimeString() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
$time = explode(':', $time);
$hour = $time[0];
$minute = $time[1] ?? 0;
@@ -176,6 +200,10 @@ public function setTimeFromTimeString(string $time): ChronosInterface
*/
public function timestamp(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 timestamp() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->setTimestamp($value);
}
@@ -220,6 +248,10 @@ public function day(int $value): ChronosInterface
*/
public function hour(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 hour() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->setTime($value, $this->minute, $this->second);
}
@@ -231,6 +263,10 @@ public function hour(int $value): ChronosInterface
*/
public function minute(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 minute() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->setTime($this->hour, $value, $this->second);
}
@@ -242,6 +278,10 @@ public function minute(int $value): ChronosInterface
*/
public function second(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 second() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->setTime($this->hour, $this->minute, $value);
}
@@ -253,6 +293,10 @@ public function second(int $value): ChronosInterface
*/
public function microsecond(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 microsecond() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->setTime($this->hour, $this->minute, $this->second, $value);
}
@@ -296,6 +340,8 @@ public function addYears(int $value): ChronosInterface
*/
public function addYear(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addYear() is deprecated. Use addYears() instead.', E_USER_DEPRECATED);
+
return $this->addYears($value);
}
@@ -322,6 +368,8 @@ public function subYears(int $value): ChronosInterface
*/
public function subYear(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - subYear() is deprecated. Use subYears() instead.', E_USER_DEPRECATED);
+
return $this->addYears(-$value);
}
@@ -355,6 +403,8 @@ public function addYearsWithOverflow(int $value): ChronosInterface
*/
public function addYearWithOverflow(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addYearWithOverflow() is deprecated.', E_USER_DEPRECATED);
+
return $this->addYearsWithOverflow($value);
}
@@ -381,6 +431,8 @@ public function subYearsWithOverflow(int $value): ChronosInterface
*/
public function subYearWithOverflow(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addYearWithOverflow() is deprecated.', E_USER_DEPRECATED);
+
return $this->subYearsWithOverflow($value);
}
@@ -425,6 +477,8 @@ public function addMonths(int $value): ChronosInterface
*/
public function addMonth(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addMonth() is deprecated. Use addMonths() instead.', E_USER_DEPRECATED);
+
return $this->addMonths($value);
}
@@ -438,6 +492,8 @@ public function addMonth(int $value = 1): ChronosInterface
*/
public function subMonth(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - subMonth() is deprecated. Use subMonths() instead.', E_USER_DEPRECATED);
+
return $this->addMonths(-$value);
}
@@ -484,6 +540,11 @@ public function addMonthsWithOverflow(int $value): ChronosInterface
*/
public function addMonthWithOverflow(int $value = 1): ChronosInterface
{
+ trigger_error(
+ 'Since 2.4 - addMonthWithOverflow() is deprecated. Use addMonthsWithOverflow() instead.',
+ E_USER_DEPRECATED
+ );
+
return $this->modify($value . ' months');
}
@@ -510,6 +571,11 @@ public function subMonthsWithOverflow(int $value): ChronosInterface
*/
public function subMonthWithOverflow(int $value = 1): ChronosInterface
{
+ trigger_error(
+ 'Since 2.4 - subMonthWithOverflow() is deprecated. Use subMonthsWithOverflow() instead.',
+ E_USER_DEPRECATED
+ );
+
return $this->subMonthsWithOverflow($value);
}
@@ -533,6 +599,8 @@ public function addDays(int $value): ChronosInterface
*/
public function addDay(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addDay() is deprecated. Use addDays() instead.', E_USER_DEPRECATED);
+
return $this->modify("$value days");
}
@@ -544,6 +612,8 @@ public function addDay(int $value = 1): ChronosInterface
*/
public function subDay(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - subDay() is deprecated. Use subDays() instead.', E_USER_DEPRECATED);
+
return $this->addDays(-$value);
}
@@ -578,6 +648,8 @@ public function addWeekdays(int $value): ChronosInterface
*/
public function addWeekday(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addWeekday() is deprecated. Use addWeekdays() instead.', E_USER_DEPRECATED);
+
return $this->addWeekdays($value);
}
@@ -600,6 +672,8 @@ public function subWeekdays(int $value): ChronosInterface
*/
public function subWeekday(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - subWeekday() is deprecated. Use subWeekdays() instead.', E_USER_DEPRECATED);
+
return $this->addWeekdays(-$value);
}
@@ -623,6 +697,8 @@ public function addWeeks(int $value): ChronosInterface
*/
public function addWeek(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addWeek() is deprecated. Use addWeeks() instead.', E_USER_DEPRECATED);
+
return $this->modify("$value week");
}
@@ -634,6 +710,8 @@ public function addWeek(int $value = 1): ChronosInterface
*/
public function subWeek(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - subWeek() is deprecated. Use subWeeks() instead.', E_USER_DEPRECATED);
+
return $this->addWeeks(-$value);
}
@@ -668,6 +746,8 @@ public function addHours(int $value): ChronosInterface
*/
public function addHour(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addHour() is deprecated. Use addHours() instead.', E_USER_DEPRECATED);
+
return $this->modify("$value hour");
}
@@ -679,6 +759,8 @@ public function addHour(int $value = 1): ChronosInterface
*/
public function subHour(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - subHour() is deprecated. Use subHours() instead.', E_USER_DEPRECATED);
+
return $this->addHours(-$value);
}
@@ -690,6 +772,10 @@ public function subHour(int $value = 1): ChronosInterface
*/
public function subHours(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 subHours() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->addHours(-$value);
}
@@ -702,6 +788,10 @@ public function subHours(int $value): ChronosInterface
*/
public function addMinutes(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 addMinutes() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->modify("$value minute");
}
@@ -713,6 +803,8 @@ public function addMinutes(int $value): ChronosInterface
*/
public function addMinute(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addMinute() is deprecated. Use addMinutes() instead.', E_USER_DEPRECATED);
+
return $this->modify("$value minute");
}
@@ -724,6 +816,8 @@ public function addMinute(int $value = 1): ChronosInterface
*/
public function subMinute(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - subMinute() is deprecated. Use subMinutes() instead.', E_USER_DEPRECATED);
+
return $this->addMinutes(-$value);
}
@@ -735,6 +829,10 @@ public function subMinute(int $value = 1): ChronosInterface
*/
public function subMinutes(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 subMinutes() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->addMinutes(-$value);
}
@@ -747,6 +845,10 @@ public function subMinutes(int $value): ChronosInterface
*/
public function addSeconds(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 setTimestamp() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->modify("$value second");
}
@@ -758,6 +860,8 @@ public function addSeconds(int $value): ChronosInterface
*/
public function addSecond(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - addSecond() is deprecated. Use addSeconds() instead.', E_USER_DEPRECATED);
+
return $this->modify("$value second");
}
@@ -769,6 +873,8 @@ public function addSecond(int $value = 1): ChronosInterface
*/
public function subSecond(int $value = 1): ChronosInterface
{
+ trigger_error('Since 2.4 - subSecond() is deprecated. Use subSeconds() instead.', E_USER_DEPRECATED);
+
return $this->addSeconds(-$value);
}
@@ -780,6 +886,10 @@ public function subSecond(int $value = 1): ChronosInterface
*/
public function subSeconds(int $value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 subSeconds() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->addSeconds(-$value);
}
@@ -790,6 +900,10 @@ public function subSeconds(int $value): ChronosInterface
*/
public function startOfDay(): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 startOfDay() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->modify('midnight');
}
@@ -800,6 +914,10 @@ public function startOfDay(): ChronosInterface
*/
public function endOfDay(): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 endOfDay() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->modify('23:59:59');
}
@@ -810,6 +928,10 @@ public function endOfDay(): ChronosInterface
*/
public function startOfMonth(): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 startOfMonth() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->modify('first day of this month midnight');
}
@@ -820,6 +942,10 @@ public function startOfMonth(): ChronosInterface
*/
public function endOfMonth(): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 endOfMonth() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->modify('last day of this month, 23:59:59');
}
@@ -830,6 +956,10 @@ public function endOfMonth(): ChronosInterface
*/
public function startOfYear(): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 startOfYear() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->modify('first day of january midnight');
}
@@ -840,6 +970,10 @@ public function startOfYear(): ChronosInterface
*/
public function endOfYear(): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 endOfYear() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return $this->modify('last day of december, 23:59:59');
}
@@ -1132,6 +1266,9 @@ public function nthOfYear(int $nth, int $dayOfWeek)
*/
public function average(?ChronosInterface $dt = null): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 average() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
$dt = $dt ?? static::now($this->tz);
return $this->addSeconds((int)($this->diffInSeconds($dt, false) / 2));
diff --git a/app/vendor/cakephp/chronos/src/Traits/RelativeKeywordTrait.php b/app/vendor/cakephp/chronos/src/Traits/RelativeKeywordTrait.php
index c98e92796..070d6bfc7 100644
--- a/app/vendor/cakephp/chronos/src/Traits/RelativeKeywordTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/RelativeKeywordTrait.php
@@ -2,16 +2,16 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice. Provides various operator methods for datetime
* objects.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
diff --git a/app/vendor/cakephp/chronos/src/Traits/TestingAidTrait.php b/app/vendor/cakephp/chronos/src/Traits/TestingAidTrait.php
index ab2fef877..f3cb5eff8 100644
--- a/app/vendor/cakephp/chronos/src/Traits/TestingAidTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/TestingAidTrait.php
@@ -2,16 +2,16 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice. Provides various operator methods for datetime
* objects.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
diff --git a/app/vendor/cakephp/chronos/src/Traits/TimezoneTrait.php b/app/vendor/cakephp/chronos/src/Traits/TimezoneTrait.php
index 2452de7ae..6335c9d0b 100644
--- a/app/vendor/cakephp/chronos/src/Traits/TimezoneTrait.php
+++ b/app/vendor/cakephp/chronos/src/Traits/TimezoneTrait.php
@@ -2,19 +2,20 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice. Provides various operator methods for datetime
* objects.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos\Traits;
+use Cake\Chronos\ChronosDate;
use Cake\Chronos\ChronosInterface;
use ReturnTypeWillChange;
@@ -31,6 +32,8 @@ trait TimezoneTrait
*/
public function timezone($value): ChronosInterface
{
+ trigger_error('2.5 timezone() is deprecated. Use setTimezone() instead.', E_USER_DEPRECATED);
+
return $this->setTimezone($value);
}
@@ -42,6 +45,8 @@ public function timezone($value): ChronosInterface
*/
public function tz($value): ChronosInterface
{
+ trigger_error('2.5 tz() is deprecated. Use setTimezone() instead.', E_USER_DEPRECATED);
+
return $this->setTimezone($value);
}
@@ -54,6 +59,10 @@ public function tz($value): ChronosInterface
#[ReturnTypeWillChange]
public function setTimezone($value): ChronosInterface
{
+ if (static::class === ChronosDate::class) {
+ trigger_error('2.5 setTimezone() will be removed in 3.x.', E_USER_DEPRECATED);
+ }
+
return parent::setTimezone(static::safeCreateDateTimeZone($value));
}
}
diff --git a/app/vendor/cakephp/chronos/src/Translator.php b/app/vendor/cakephp/chronos/src/Translator.php
index 382bfd484..2229d4680 100644
--- a/app/vendor/cakephp/chronos/src/Translator.php
+++ b/app/vendor/cakephp/chronos/src/Translator.php
@@ -2,14 +2,14 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Chronos;
diff --git a/app/vendor/cakephp/chronos/src/carbon_compat.php b/app/vendor/cakephp/chronos/src/carbon_compat.php
index 0d8eff724..a7c1c80d2 100644
--- a/app/vendor/cakephp/chronos/src/carbon_compat.php
+++ b/app/vendor/cakephp/chronos/src/carbon_compat.php
@@ -2,15 +2,15 @@
declare(strict_types=1);
/**
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
- * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @copyright Copyright (c) Brian Nesbitt
- * @link http://cakephp.org CakePHP(tm) Project
- * @license http://www.opensource.org/licenses/mit-license.php MIT License
+ * @link https://cakephp.org CakePHP(tm) Project
+ * @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
// Check if the interface alias exists and don't redeclare it in case we are in
diff --git a/app/vendor/cakephp/debug_kit/LICENSE.txt b/app/vendor/cakephp/debug_kit/LICENSE.txt
index 0a0a98c8e..7fd9d1f4b 100644
--- a/app/vendor/cakephp/debug_kit/LICENSE.txt
+++ b/app/vendor/cakephp/debug_kit/LICENSE.txt
@@ -1,6 +1,6 @@
The MIT License
-CakePHP(tm) : The Rapid Development PHP Framework (http://cakephp.org)
+CakePHP(tm) : The Rapid Development PHP Framework (https://cakephp.org)
Copyright (c) 2005-present, Cake Software Foundation, Inc.
Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/app/vendor/cakephp/debug_kit/composer.json b/app/vendor/cakephp/debug_kit/composer.json
index 248275f19..2504f45e3 100644
--- a/app/vendor/cakephp/debug_kit/composer.json
+++ b/app/vendor/cakephp/debug_kit/composer.json
@@ -18,7 +18,7 @@
],
"support": {
"issues": "https://github.com/cakephp/debug_kit/issues",
- "forum": "http://stackoverflow.com/tags/cakephp",
+ "forum": "https://stackoverflow.com/tags/cakephp",
"irc": "irc://irc.freenode.org/cakephp",
"source": "https://github.com/cakephp/debug_kit"
},
diff --git a/app/vendor/cakephp/debug_kit/docs.Dockerfile b/app/vendor/cakephp/debug_kit/docs.Dockerfile
index cb30b3edf..f5613cace 100644
--- a/app/vendor/cakephp/debug_kit/docs.Dockerfile
+++ b/app/vendor/cakephp/debug_kit/docs.Dockerfile
@@ -1,5 +1,5 @@
# Generate the HTML output.
-FROM markstory/cakephp-docs-builder as builder
+FROM ghcr.io/cakephp/docs-builder as builder
RUN pip install git+https://github.com/sphinx-contrib/video.git@master
@@ -15,7 +15,7 @@ RUN cd /data/docs-builder \
&& cp /data/docs/static/* /data/website/html/_static/
# Build a small nginx container with just the static site in it.
-FROM markstory/cakephp-docs-builder:runtime as runtime
+FROM ghcr.io/cakephp/docs-builder:runtime as runtime
# Configure search index script
ENV LANGS="en fr ja pt"
diff --git a/app/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php b/app/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php
index 662d1b769..e6db2ed37 100644
--- a/app/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php
+++ b/app/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php
@@ -69,6 +69,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
return $response;
}
- return $this->service->injectScripts($row, $response);
+ return $this->service->injectScripts($row, $request, $response);
}
}
diff --git a/app/vendor/cakephp/debug_kit/src/Panel/CachePanel.php b/app/vendor/cakephp/debug_kit/src/Panel/CachePanel.php
index 0265157ed..23a2a1a2b 100644
--- a/app/vendor/cakephp/debug_kit/src/Panel/CachePanel.php
+++ b/app/vendor/cakephp/debug_kit/src/Panel/CachePanel.php
@@ -55,9 +55,17 @@ public function initialize()
if (isset($config['className']) && $config['className'] instanceof DebugEngine) {
$instance = $config['className'];
} elseif (isset($config['className'])) {
- Cache::drop($name);
- $instance = new DebugEngine($config, $name, $this->logger);
+ /** @var \Cake\Cache\CacheEngine $engine */
+ $engine = Cache::pool($name);
+ // Unload from the cache registry so that subsequence calls to
+ // Cache::pool($name) use the new config with DebugEngine instance set below.
+ Cache::getRegistry()->unload($name);
+
+ $instance = new DebugEngine($engine, $name, $this->logger);
+ $instance->init();
$config['className'] = $instance;
+
+ Cache::drop($name);
Cache::setConfig($name, $config);
}
if (isset($instance)) {
diff --git a/app/vendor/cakephp/debug_kit/src/ToolbarService.php b/app/vendor/cakephp/debug_kit/src/ToolbarService.php
index 8dac83c4b..c08418c4a 100644
--- a/app/vendor/cakephp/debug_kit/src/ToolbarService.php
+++ b/app/vendor/cakephp/debug_kit/src/ToolbarService.php
@@ -25,6 +25,7 @@
use DebugKit\Panel\PanelRegistry;
use PDOException;
use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\ServerRequestInterface;
/**
* Used to create the panels and inject a toolbar into
@@ -337,10 +338,11 @@ public function getToolbarUrl()
* contains HTML and there is a