diff --git a/composer.lock b/composer.lock index 2d482ee..e98e591 100644 --- a/composer.lock +++ b/composer.lock @@ -145,16 +145,16 @@ }, { "name": "justinrainbow/json-schema", - "version": "6.11.0", + "version": "6.13.1", "source": { "type": "git", "url": "https://github.com/jsonrainbow/json-schema.git", - "reference": "7e420a943a6fbc95e60e3cf67acfbee85b3b4da7" + "reference": "e54aacc4c0657b3a4af4f628428d2702146828c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/7e420a943a6fbc95e60e3cf67acfbee85b3b4da7", - "reference": "7e420a943a6fbc95e60e3cf67acfbee85b3b4da7", + "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/e54aacc4c0657b3a4af4f628428d2702146828c6", + "reference": "e54aacc4c0657b3a4af4f628428d2702146828c6", "shasum": "" }, "require": { @@ -204,9 +204,9 @@ ], "support": { "issues": "https://github.com/jsonrainbow/json-schema/issues", - "source": "https://github.com/jsonrainbow/json-schema/tree/6.11.0" + "source": "https://github.com/jsonrainbow/json-schema/tree/6.13.1" }, - "time": "2026-08-21T10:30:42+00:00" + "time": "2026-09-30T07:42:28+00:00" }, { "name": "magicalex/write-ini-file", @@ -332,6 +332,55 @@ }, "time": "2025-09-14T11:18:39+00:00" }, + { + "name": "phpgt/async", + "version": "v1.0.4", + "source": { + "type": "git", + "url": "https://github.com/phpgt/Async.git", + "reference": "a111af0c5194a23f1367006747b46de7b5f01327" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpgt/Async/zipball/a111af0c5194a23f1367006747b46de7b5f01327", + "reference": "a111af0c5194a23f1367006747b46de7b5f01327", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "php": ">=8.1", + "phpgt/promise": "^2.0" + }, + "require-dev": { + "phpmd/phpmd": "^2.13", + "phpstan/phpstan": "^2.1", + "phpunit/phpunit": "^10.1", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "GT\\Async\\": "./src", + "Gt\\Async\\": "./src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Promise-based non-blocking operations.", + "support": { + "issues": "https://github.com/phpgt/Async/issues", + "source": "https://github.com/phpgt/Async/tree/v1.0.4" + }, + "funding": [ + { + "url": "https://github.com/sponsors/PhpGt", + "type": "github" + } + ], + "time": "2026-08-25T12:01:48+00:00" + }, { "name": "phpgt/build", "version": "v1.4.0", @@ -450,16 +499,16 @@ }, { "name": "phpgt/config", - "version": "v1.2.0", + "version": "v1.3.0", "source": { "type": "git", "url": "https://github.com/phpgt/Config.git", - "reference": "21fa25f3dca864ecc9c54800a4394eb5601f2c4d" + "reference": "5d644af3fdc35bc3c648868ae670ea4cd162937a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Config/zipball/21fa25f3dca864ecc9c54800a4394eb5601f2c4d", - "reference": "21fa25f3dca864ecc9c54800a4394eb5601f2c4d", + "url": "https://api.github.com/repos/phpgt/Config/zipball/5d644af3fdc35bc3c648868ae670ea4cd162937a", + "reference": "5d644af3fdc35bc3c648868ae670ea4cd162937a", "shasum": "" }, "require": { @@ -479,6 +528,7 @@ "type": "library", "autoload": { "psr-4": { + "GT\\Config\\": "./src", "Gt\\Config\\": "./src" } }, @@ -495,7 +545,7 @@ "description": "Manage configuration with ini files and environment variables.", "support": { "issues": "https://github.com/phpgt/Config/issues", - "source": "https://github.com/phpgt/Config/tree/v1.2.0" + "source": "https://github.com/phpgt/Config/tree/v1.3.0" }, "funding": [ { @@ -503,20 +553,20 @@ "type": "github" } ], - "time": "2026-03-16T11:04:06+00:00" + "time": "2026-06-29T20:06:02+00:00" }, { "name": "phpgt/cron", - "version": "v1.2.2", + "version": "v1.2.3", "source": { "type": "git", "url": "https://github.com/phpgt/Cron.git", - "reference": "cb868f879994c401d31ab1d896b33d2900a6b961" + "reference": "92e09402d1cd41630aa8b2e2b1874d7a1f75dc7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Cron/zipball/cb868f879994c401d31ab1d896b33d2900a6b961", - "reference": "cb868f879994c401d31ab1d896b33d2900a6b961", + "url": "https://api.github.com/repos/phpgt/Cron/zipball/92e09402d1cd41630aa8b2e2b1874d7a1f75dc7a", + "reference": "92e09402d1cd41630aa8b2e2b1874d7a1f75dc7a", "shasum": "" }, "require": { @@ -546,7 +596,7 @@ "description": "Run scripts or static functions at regular intervals.", "support": { "issues": "https://github.com/phpgt/Cron/issues", - "source": "https://github.com/phpgt/Cron/tree/v1.2.2" + "source": "https://github.com/phpgt/Cron/tree/v1.2.3" }, "funding": [ { @@ -554,7 +604,69 @@ "type": "github" } ], - "time": "2026-07-19T18:34:21+00:00" + "time": "2026-08-19T10:12:39+00:00" + }, + { + "name": "phpgt/curl", + "version": "v3.2.3", + "source": { + "type": "git", + "url": "https://github.com/phpgt/Curl.git", + "reference": "fd63a520b0086f4cc34317f9602101056f55bb00" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpgt/Curl/zipball/fd63a520b0086f4cc34317f9602101056f55bb00", + "reference": "fd63a520b0086f4cc34317f9602101056f55bb00", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "php": ">=8.4", + "phpgt/json": "^2.2" + }, + "require-dev": { + "phpmd/phpmd": "^2.15", + "phpstan/phpstan": "^2.1", + "phpunit/phpunit": "^12.5", + "squizlabs/php_codesniffer": "^4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "GT\\Curl\\": "./src", + "Gt\\Curl\\": "./src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Greg Bowler", + "email": "greg.bowler@g105b.com" + } + ], + "description": "cURL object wrapper.", + "keywords": [ + "curl", + "curl_multi", + "http", + "interface" + ], + "support": { + "issues": "https://github.com/phpgt/Curl/issues", + "source": "https://github.com/phpgt/Curl/tree/v3.2.3" + }, + "funding": [ + { + "url": "https://github.com/sponsors/PhpGt", + "type": "github" + } + ], + "time": "2026-06-29T20:06:08+00:00" }, { "name": "phpgt/daemon", @@ -673,16 +785,16 @@ }, { "name": "phpgt/dataobject", - "version": "v1.1.1", + "version": "v1.1.2", "source": { "type": "git", "url": "https://github.com/phpgt/DataObject.git", - "reference": "fc1918f2c1a9f3329d8d80bd01f3658cf07961ba" + "reference": "4c6b55ae11555f915969734d9002caa201feda99" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/DataObject/zipball/fc1918f2c1a9f3329d8d80bd01f3658cf07961ba", - "reference": "fc1918f2c1a9f3329d8d80bd01f3658cf07961ba", + "url": "https://api.github.com/repos/phpgt/DataObject/zipball/4c6b55ae11555f915969734d9002caa201feda99", + "reference": "4c6b55ae11555f915969734d9002caa201feda99", "shasum": "" }, "require": { @@ -716,7 +828,7 @@ "description": " Structured, type-safe, immutable data transfer.", "support": { "issues": "https://github.com/phpgt/DataObject/issues", - "source": "https://github.com/phpgt/DataObject/tree/v1.1.1" + "source": "https://github.com/phpgt/DataObject/tree/v1.1.2" }, "funding": [ { @@ -724,43 +836,52 @@ "type": "github" } ], - "time": "2026-04-21T12:24:50+00:00" + "time": "2026-07-25T17:55:14+00:00" }, { "name": "phpgt/http", - "version": "v1.1.10", + "version": "v1.3.9", "source": { "type": "git", - "url": "https://github.com/PhpGt/Http.git", - "reference": "8b2b6b99d218147c203c466a9bbf12cdb8971942" + "url": "https://github.com/phpgt/Http.git", + "reference": "eca66ac787bae767d2ff0363c5b243f809619ec4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PhpGt/Http/zipball/8b2b6b99d218147c203c466a9bbf12cdb8971942", - "reference": "8b2b6b99d218147c203c466a9bbf12cdb8971942", + "url": "https://api.github.com/repos/phpgt/Http/zipball/eca66ac787bae767d2ff0363c5b243f809619ec4", + "reference": "eca66ac787bae767d2ff0363c5b243f809619ec4", "shasum": "" }, "require": { - "php": ">=8.1", - "phpgt/input": "^1.2", + "ext-curl": "*", + "ext-dom": "*", + "ext-fileinfo": "*", + "php": ">=8.4", + "phpgt/async": "^1.0", + "phpgt/curl": "^3.2", + "phpgt/input": "^1.3", + "phpgt/json": "^2.2", + "phpgt/promise": "^2.4", + "phpgt/propfunc": "^1.0", + "phpgt/typesafegetter": "^1.3", "psr/http-message": "^2.0", "willdurand/negotiation": "3.1.0" }, "require-dev": { "phpmd/phpmd": "^2.13", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^10.1", + "phpstan/phpstan": "^2.1", + "phpunit/phpunit": "^11.5", "squizlabs/php_codesniffer": "^3.7" }, "type": "library", "extra": { "branch-alias": { - "dev-ci": "1.2.3-dev", - "dev-master": "1.2.3-dev" + "dev-master": "1.3-dev" } }, "autoload": { "psr-4": { + "GT\\Http\\": "./src", "Gt\\Http\\": "./src" } }, @@ -770,8 +891,8 @@ ], "description": "PSR-7 HTTP message implementation.", "support": { - "issues": "https://github.com/PhpGt/Http/issues", - "source": "https://github.com/PhpGt/Http/tree/v1.1.10" + "issues": "https://github.com/phpgt/Http/issues", + "source": "https://github.com/phpgt/Http/tree/v1.3.9" }, "funding": [ { @@ -779,7 +900,7 @@ "type": "github" } ], - "time": "2023-05-03T10:42:38+00:00" + "time": "2026-04-24T12:58:50+00:00" }, { "name": "phpgt/input", @@ -891,6 +1012,116 @@ ], "time": "2026-07-15T09:27:37+00:00" }, + { + "name": "phpgt/promise", + "version": "v2.4.1", + "source": { + "type": "git", + "url": "https://github.com/phpgt/Promise.git", + "reference": "bf781780866fe5c52d20c071740e07c59df4c1c0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpgt/Promise/zipball/bf781780866fe5c52d20c071740e07c59df4c1c0", + "reference": "bf781780866fe5c52d20c071740e07c59df4c1c0", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpmd/phpmd": "^2.13", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^12.1", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "GT\\Promise\\": "./src", + "Gt\\Promise\\": "./src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Pleasantly work with asynchronous code.", + "keywords": [ + "W3C", + "async", + "asynchronous", + "callback", + "concurrency", + "concurrent", + "deferred", + "promise", + "then" + ], + "support": { + "issues": "https://github.com/phpgt/Promise/issues", + "source": "https://github.com/phpgt/Promise/tree/v2.4.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/phpgt", + "type": "github" + } + ], + "time": "2026-05-04T15:49:22+00:00" + }, + { + "name": "phpgt/propfunc", + "version": "v1.0.1", + "source": { + "type": "git", + "url": "https://github.com/PhpGt/PropFunc.git", + "reference": "091213649e89ff22d1ef640b46fbee5215c65520" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PhpGt/PropFunc/zipball/091213649e89ff22d1ef640b46fbee5215c65520", + "reference": "091213649e89ff22d1ef640b46fbee5215c65520", + "shasum": "" + }, + "require": { + "php": ">=8.0" + }, + "require-dev": { + "phpstan/phpstan": ">=0.12", + "phpunit/phpunit": ">=9.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Gt\\PropFunc\\": "./src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Greg Bowler", + "email": "greg.bowler@g105b.com", + "homepage": "https://www.g105b.com", + "role": "Developer" + } + ], + "description": "Property accessor and mutator functions.", + "support": { + "issues": "https://github.com/PhpGt/PropFunc/issues", + "source": "https://github.com/PhpGt/PropFunc/tree/v1.0.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/PhpGt", + "type": "github" + } + ], + "time": "2021-03-23T12:46:44+00:00" + }, { "name": "phpgt/server", "version": "v1.2.0", @@ -939,16 +1170,16 @@ }, { "name": "phpgt/servicecontainer", - "version": "v1.4.0", + "version": "v1.5.0", "source": { "type": "git", "url": "https://github.com/phpgt/ServiceContainer.git", - "reference": "9f85224075716808f75a7d2da867fddefe9b4020" + "reference": "bb0fa330f93be83d4f13f387c39d009e6a721690" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/ServiceContainer/zipball/9f85224075716808f75a7d2da867fddefe9b4020", - "reference": "9f85224075716808f75a7d2da867fddefe9b4020", + "url": "https://api.github.com/repos/phpgt/ServiceContainer/zipball/bb0fa330f93be83d4f13f387c39d009e6a721690", + "reference": "bb0fa330f93be83d4f13f387c39d009e6a721690", "shasum": "" }, "require": { @@ -967,6 +1198,7 @@ "type": "library", "autoload": { "psr-4": { + "GT\\ServiceContainer\\": "./src", "Gt\\ServiceContainer\\": "./src" } }, @@ -977,7 +1209,7 @@ "description": "Centralised container of a project's core objects.", "support": { "issues": "https://github.com/phpgt/ServiceContainer/issues", - "source": "https://github.com/phpgt/ServiceContainer/tree/v1.4.0" + "source": "https://github.com/phpgt/ServiceContainer/tree/v1.5.0" }, "funding": [ { @@ -985,7 +1217,7 @@ "type": "github" } ], - "time": "2026-03-09T16:32:02+00:00" + "time": "2026-06-23T16:24:38+00:00" }, { "name": "phpgt/sqlbuilder", diff --git a/src/Command/SqlMigrationDetector.php b/src/Command/SqlMigrationDetector.php index 15e88d3..024d481 100644 --- a/src/Command/SqlMigrationDetector.php +++ b/src/Command/SqlMigrationDetector.php @@ -2,8 +2,8 @@ namespace GT\GtCommand\Command; use Gt\Cli\Argument\ArgumentValueList; -use Gt\Config\Config; -use Gt\Config\ConfigFactory; +use GT\Config\Config; +use GT\Config\ConfigFactory; class SqlMigrationDetector { public function hasMigrations(