diff --git a/composer.json b/composer.json index 32363b23..3fffdbb7 100644 --- a/composer.json +++ b/composer.json @@ -45,22 +45,22 @@ "doctrine/sql-formatter": "^1.1", "guzzlehttp/psr7": "^2.4.5", "http-interop/http-factory-guzzle": "^1.0.0", - "illuminate/collections": "^11.0.0", - "illuminate/conditionable": "^11.0.0", - "illuminate/console": "^11.0.0", - "illuminate/container": "^11.0.0", - "illuminate/contracts": "^11.0.0", - "illuminate/database": "^11.0.0", - "illuminate/filesystem": "^11.0.0", - "illuminate/http": "^11.0.0", - "illuminate/macroable": "^11.0.0", - "illuminate/pagination": "^11.0.0", - "illuminate/process": "^11.0.0", - "illuminate/routing": "^11.0.0", - "illuminate/support": "^11.0.0", - "illuminate/testing": "^11.0.0", - "illuminate/translation": "^11.0.0", - "illuminate/validation": "^11.0.0", + "illuminate/collections": "^11.0.8", + "illuminate/conditionable": "^11.0.8", + "illuminate/console": "^11.0.8", + "illuminate/container": "^11.0.8", + "illuminate/contracts": "^11.0.8", + "illuminate/database": "^11.0.8", + "illuminate/filesystem": "^11.0.8", + "illuminate/http": "^11.0.8", + "illuminate/macroable": "^11.0.8", + "illuminate/pagination": "^11.0.8", + "illuminate/process": "^11.0.8", + "illuminate/routing": "^11.0.8", + "illuminate/support": "^11.0.8", + "illuminate/testing": "^11.0.8", + "illuminate/translation": "^11.0.8", + "illuminate/validation": "^11.0.8", "larastan/larastan": "^2.8.1", "league/commonmark": "^2.5.1", "league/config": "^1.1.1", @@ -96,8 +96,8 @@ "bamarni/composer-bin-plugin": "^1.8", "composer/class-map-generator": "^1.0", "fakerphp/faker": "^1.21.0", - "illuminate/cache": "^11.0.0", - "illuminate/config": "^11.0.0", + "illuminate/cache": "^11.0.8", + "illuminate/config": "^11.0.8", "laravel/scout": "^10.8.0", "orchestra/testbench": "^9.0.0", "phpstan/phpstan": "1.12.11", diff --git a/packages/core/composer.json b/packages/core/composer.json index cf87d350..476b0601 100644 --- a/packages/core/composer.json +++ b/packages/core/composer.json @@ -19,10 +19,10 @@ }, "require": { "php": "^8.2|^8.3", - "illuminate/console": "^11.0.0", - "illuminate/container": "^11.0.0", - "illuminate/contracts": "^11.0.0", - "illuminate/support": "^11.0.0", + "illuminate/console": "^11.0.8", + "illuminate/container": "^11.0.8", + "illuminate/contracts": "^11.0.8", + "illuminate/support": "^11.0.8", "symfony/deprecation-contracts": "^3.0.0", "symfony/filesystem": "^7.0.0", "symfony/polyfill-php83": "^1.28" diff --git a/packages/dev/composer.json b/packages/dev/composer.json index b9344637..f4b7aadd 100644 --- a/packages/dev/composer.json +++ b/packages/dev/composer.json @@ -19,8 +19,8 @@ }, "require": { "php": "^8.2|^8.3", - "illuminate/contracts": "^11.0.0", - "illuminate/support": "^11.0.0", + "illuminate/contracts": "^11.0.8", + "illuminate/support": "^11.0.8", "larastan/larastan": "^2.8.1", "lastdragon-ru/lara-asp-core": "self.version", "lastdragon-ru/lara-asp-documentator": "self.version", diff --git a/packages/documentator/composer.json b/packages/documentator/composer.json index f6bee4b1..8961020a 100644 --- a/packages/documentator/composer.json +++ b/packages/documentator/composer.json @@ -23,10 +23,10 @@ "ext-intl": "*", "ext-mbstring": "*", "composer/semver": "^3.2", - "illuminate/contracts": "^11.0.0", - "illuminate/console": "^11.0.0", - "illuminate/process": "^11.0.0", - "illuminate/support": "^11.0.0", + "illuminate/contracts": "^11.0.8", + "illuminate/console": "^11.0.8", + "illuminate/process": "^11.0.8", + "illuminate/support": "^11.0.8", "league/commonmark": "^2.5.1", "league/config": "^1.1.1", "nikic/php-parser": "^5.0", diff --git a/packages/eloquent/composer.json b/packages/eloquent/composer.json index ecd56394..07f6752f 100644 --- a/packages/eloquent/composer.json +++ b/packages/eloquent/composer.json @@ -18,15 +18,15 @@ }, "require": { "php": "^8.2|^8.3", - "illuminate/collections": "^11.0.0", - "illuminate/database": "^11.0.0", - "illuminate/support": "^11.0.0", + "illuminate/collections": "^11.0.8", + "illuminate/database": "^11.0.8", + "illuminate/support": "^11.0.8", "lastdragon-ru/lara-asp-core": "self.version", "symfony/polyfill-php83": "^1.28" }, "require-dev": { "ext-pdo_sqlite": "*", - "illuminate/contracts": "^11.0.0", + "illuminate/contracts": "^11.0.8", "lastdragon-ru/lara-asp-testing": "self.version", "mockery/mockery": "^1.6.5", "orchestra/testbench": "^9.0.0", diff --git a/packages/formatter/composer.json b/packages/formatter/composer.json index 887cba22..9f001c3d 100644 --- a/packages/formatter/composer.json +++ b/packages/formatter/composer.json @@ -22,13 +22,13 @@ "ext-bcmath": "*", "ext-intl": "*", "ext-mbstring": "*", - "illuminate/macroable": "^11.0.0", - "illuminate/support": "^11.0.0", + "illuminate/macroable": "^11.0.8", + "illuminate/support": "^11.0.8", "lastdragon-ru/lara-asp-core": "self.version", "symfony/polyfill-php83": "^1.28" }, "require-dev": { - "illuminate/contracts": "^11.0.0", + "illuminate/contracts": "^11.0.8", "lastdragon-ru/lara-asp-testing": "self.version", "orchestra/testbench": "^9.0.0", "phpunit/phpunit": "^10.5.0|^11.0.0" diff --git a/packages/graphql/composer.json b/packages/graphql/composer.json index 2e1feeca..fb236896 100644 --- a/packages/graphql/composer.json +++ b/packages/graphql/composer.json @@ -22,10 +22,10 @@ "ext-filter": "*", "ext-mbstring": "*", "composer/semver": "^3.2", - "illuminate/collections": "^11.0.0", - "illuminate/contracts": "^11.0.0", - "illuminate/database": "^11.0.0", - "illuminate/support": "^11.0.0", + "illuminate/collections": "^11.0.8", + "illuminate/contracts": "^11.0.8", + "illuminate/database": "^11.0.8", + "illuminate/support": "^11.0.8", "nuwave/lighthouse": "^6.36.0", "lastdragon-ru/lara-asp-core": "self.version", "lastdragon-ru/lara-asp-eloquent": "self.version", @@ -37,7 +37,7 @@ }, "require-dev": { "ext-pdo_sqlite": "*", - "illuminate/cache": "^11.0.0", + "illuminate/cache": "^11.0.8", "laravel/scout": "^10.8.0", "mockery/mockery": "^1.6.5", "phpunit/phpunit": "^10.5.0|^11.0.0", diff --git a/packages/migrator/composer.json b/packages/migrator/composer.json index 6590b30c..0f592174 100644 --- a/packages/migrator/composer.json +++ b/packages/migrator/composer.json @@ -23,13 +23,13 @@ "php": "^8.2|^8.3", "ext-json": "*", "ext-mbstring": "*", - "illuminate/conditionable": "^11.0.0", - "illuminate/console": "^11.0.0", - "illuminate/container": "^11.0.0", - "illuminate/contracts": "^11.0.0", - "illuminate/database": "^11.0.0", - "illuminate/filesystem": "^11.0.0", - "illuminate/support": "^11.0.0", + "illuminate/conditionable": "^11.0.8", + "illuminate/console": "^11.0.8", + "illuminate/container": "^11.0.8", + "illuminate/contracts": "^11.0.8", + "illuminate/database": "^11.0.8", + "illuminate/filesystem": "^11.0.8", + "illuminate/support": "^11.0.8", "lastdragon-ru/lara-asp-core": "self.version", "symfony/console": "^7.0.0", "symfony/finder": "^7.0.0", @@ -37,7 +37,7 @@ }, "require-dev": { "ext-pdo_sqlite": "*", - "illuminate/config": "^11.0.0", + "illuminate/config": "^11.0.8", "lastdragon-ru/lara-asp-testing": "self.version", "mockery/mockery": "^1.6.5", "orchestra/testbench": "^9.0.0", diff --git a/packages/migrator/src/Commands/SqlMigration.php b/packages/migrator/src/Commands/SqlMigration.php index 02a65846..55677238 100644 --- a/packages/migrator/src/Commands/SqlMigration.php +++ b/packages/migrator/src/Commands/SqlMigration.php @@ -19,6 +19,9 @@ #[AsCommand( name : Package::Name.':sql-migration', description: 'Create a new SQL Migration file.', + aliases : [ + 'make:sql-migration', + ], )] class SqlMigration extends BaseCommand { #[Override] diff --git a/packages/migrator/src/Commands/SqlMigrationTest.php b/packages/migrator/src/Commands/SqlMigrationTest.php index 22173d22..5cd85689 100644 --- a/packages/migrator/src/Commands/SqlMigrationTest.php +++ b/packages/migrator/src/Commands/SqlMigrationTest.php @@ -5,6 +5,7 @@ use LastDragon_ru\LaraASP\Migrator\Package; use LastDragon_ru\LaraASP\Migrator\Testing\Package\TestCase; use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\Finder\Finder; use function array_slice; @@ -16,16 +17,18 @@ */ #[CoversClass(SqlMigration::class)] final class SqlMigrationTest extends TestCase { - public function testHandle(): void { + // + // ========================================================================= + #[DataProvider('dataProviderHandle')] + public function testHandle(string $command): void { // Pre test - $pkg = Package::Name; $path = self::getTempDirectory(); $finder = Finder::create()->in($path); self::assertCount(0, $finder->files()); // Call - $this->artisan("{$pkg}:sql-migration", [ + $this->artisan($command, [ 'name' => 'SqlMigration', '--path' => $path, ]); @@ -44,4 +47,18 @@ public function testHandle(): void { self::assertEquals($expected, $actual); } + // + + // + // ========================================================================= + /** + * @return array + */ + public static function dataProviderHandle(): array { + return [ + 'name' => [Package::Name.':sql-migration'], + 'alias' => ['make:sql-migration'], + ]; + } + // } diff --git a/packages/migrator/src/Commands/SqlSeeder.php b/packages/migrator/src/Commands/SqlSeeder.php index d2b07523..3c7ebea7 100644 --- a/packages/migrator/src/Commands/SqlSeeder.php +++ b/packages/migrator/src/Commands/SqlSeeder.php @@ -14,6 +14,9 @@ #[AsCommand( name : Package::Name.':sql-seeder', description: 'Create a new SQL Seeder class', + aliases : [ + 'make:sql-seeder', + ], )] class SqlSeeder extends GeneratorCommand { /** diff --git a/packages/migrator/src/Commands/SqlSeederTest.php b/packages/migrator/src/Commands/SqlSeederTest.php index 8c61ce7c..ab8138c7 100644 --- a/packages/migrator/src/Commands/SqlSeederTest.php +++ b/packages/migrator/src/Commands/SqlSeederTest.php @@ -5,6 +5,7 @@ use LastDragon_ru\LaraASP\Migrator\Package; use LastDragon_ru\LaraASP\Migrator\Testing\Package\TestCase; use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\Finder\Finder; /** @@ -12,9 +13,11 @@ */ #[CoversClass(SqlSeeder::class)] final class SqlSeederTest extends TestCase { - public function testHandle(): void { + // + // ========================================================================= + #[DataProvider('dataProviderHandle')] + public function testHandle(string $command): void { // Pre test - $pkg = Package::Name; $path = self::getTempDirectory(); $finder = Finder::create()->in($path); @@ -26,7 +29,7 @@ public function testHandle(): void { $this->app->useDatabasePath($path); // Call - $this->artisan("{$pkg}:sql-seeder", [ + $this->artisan($command, [ 'name' => 'SqlSeeder', ]); @@ -43,4 +46,18 @@ public function testHandle(): void { self::assertEquals($expected, $actual); } + // + + // + // ========================================================================= + /** + * @return array + */ + public static function dataProviderHandle(): array { + return [ + 'name' => [Package::Name.':sql-seeder'], + 'alias' => ['make:sql-seeder'], + ]; + } + // } diff --git a/packages/serializer/composer.json b/packages/serializer/composer.json index 8e5cf05e..0ca23fae 100644 --- a/packages/serializer/composer.json +++ b/packages/serializer/composer.json @@ -18,10 +18,10 @@ }, "require": { "php": "^8.2|^8.3", - "illuminate/container": "^11.0.0", - "illuminate/contracts": "^11.0.0", - "illuminate/database": "^11.0.0", - "illuminate/support": "^11.0.0", + "illuminate/container": "^11.0.8", + "illuminate/contracts": "^11.0.8", + "illuminate/database": "^11.0.8", + "illuminate/support": "^11.0.8", "lastdragon-ru/lara-asp-core": "self.version", "phpdocumentor/type-resolver": "^1.7", "phpstan/phpdoc-parser": "^1.25", diff --git a/packages/spa/composer.json b/packages/spa/composer.json index 113e930e..a4b14082 100644 --- a/packages/spa/composer.json +++ b/packages/spa/composer.json @@ -20,14 +20,14 @@ "require": { "php": "^8.2|^8.3", "ext-mbstring": "*", - "illuminate/collections": "^11.0.0", - "illuminate/contracts": "^11.0.0", - "illuminate/database": "^11.0.0", - "illuminate/http": "^11.0.0", - "illuminate/pagination": "^11.0.0", - "illuminate/routing": "^11.0.0", - "illuminate/support": "^11.0.0", - "illuminate/validation": "^11.0.0", + "illuminate/collections": "^11.0.8", + "illuminate/contracts": "^11.0.8", + "illuminate/database": "^11.0.8", + "illuminate/http": "^11.0.8", + "illuminate/pagination": "^11.0.8", + "illuminate/routing": "^11.0.8", + "illuminate/support": "^11.0.8", + "illuminate/validation": "^11.0.8", "guzzlehttp/psr7": "^2.4.5", "lastdragon-ru/lara-asp-core": "self.version", "symfony/deprecation-contracts": "^3.0.0", diff --git a/packages/testing/composer.json b/packages/testing/composer.json index 6e581133..4c3bb9d9 100644 --- a/packages/testing/composer.json +++ b/packages/testing/composer.json @@ -28,12 +28,12 @@ "composer/semver": "^3.2", "doctrine/sql-formatter": "^1.1", "http-interop/http-factory-guzzle": "^1.0.0", - "illuminate/collections": "^11.0.0", - "illuminate/console": "^11.0.0", - "illuminate/contracts": "^11.0.0", - "illuminate/database": "^11.0.0", - "illuminate/testing": "^11.0.0", - "illuminate/translation": "^11.0.0", + "illuminate/collections": "^11.0.8", + "illuminate/console": "^11.0.8", + "illuminate/contracts": "^11.0.8", + "illuminate/database": "^11.0.8", + "illuminate/testing": "^11.0.8", + "illuminate/translation": "^11.0.8", "mockery/mockery": "^1.6.5", "opis/json-schema": "^2.3.0", "phpunit/phpunit": "^10.5.0|^11.0.0", @@ -50,7 +50,7 @@ "require-dev": { "fakerphp/faker": "^1.21.0", "guzzlehttp/psr7": "^2.4.5", - "illuminate/http": "^11.0.0", + "illuminate/http": "^11.0.8", "laravel/scout": "^10.8.0", "orchestra/testbench": "^9.0.0", "symfony/console": "^7.0.0",