From 8a17d8c527146c6a905d2d407ff48cc5a89a0b66 Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Tue, 11 Jun 2024 16:26:55 +0200 Subject: [PATCH] refs #452. New migration system. Clean database --- .env | 2 + composer.lock | 737 ++++++++--------- config/packages/doctrine.yaml | 46 +- docker/xdebug.ini | 3 +- migrations/.gitignore | 0 migrations/Version20240606102152.php | 47 -- ...06081620.php => Version20240611090540.php} | 26 +- .../Migration/MigrateClientsCommand.php | 86 ++ ...grateHardwareAndHardwareProfileCommand.php | 40 + .../MigrateOrganizationalUnitCommand.php | 204 +++-- src/DataFixtures/AppFixtures.php | 17 +- src/Dto/Output/ClientOutput.php | 1 - src/Entity/Migration/Aulas.php | 753 ------------------ src/Entity/Migration/Centros.php | 133 ---- src/Entity/Migration/Gruposordenadores.php | 133 ---- src/Entity/Migration/Ordenadores.php | 663 --------------- src/Factory/UserFactory.php | 2 +- src/Repository/.gitignore | 0 symfony.lock | 38 +- 19 files changed, 681 insertions(+), 2250 deletions(-) create mode 100644 migrations/.gitignore delete mode 100644 migrations/Version20240606102152.php rename migrations/{Version20240606081620.php => Version20240611090540.php} (65%) create mode 100644 src/Command/Migration/MigrateClientsCommand.php create mode 100644 src/Command/Migration/MigrateHardwareAndHardwareProfileCommand.php delete mode 100644 src/Entity/Migration/Aulas.php delete mode 100644 src/Entity/Migration/Centros.php delete mode 100644 src/Entity/Migration/Gruposordenadores.php delete mode 100644 src/Entity/Migration/Ordenadores.php create mode 100644 src/Repository/.gitignore diff --git a/.env b/.env index 48bdf9b..2d1c753 100644 --- a/.env +++ b/.env @@ -26,6 +26,8 @@ APP_SECRET=e95c7f17da15ce1b03d77ad655379c34 # DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" # DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4" DATABASE_URL="mysql://root:root@ogcore-database:3306/ogcore?serverVersion=10.11.2-MariaDB&charset=utf8mb4" +OG_1_DATABASE_URL="mysql://root:root@ogcore-database:3306/ogcore_old_og?serverVersion=10.11.2-MariaDB&charset=utf8mb4" + #DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8" ###< doctrine/doctrine-bundle ### diff --git a/composer.lock b/composer.lock index 2b0b43f..98d87a8 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "api-platform/core", - "version": "v3.3.3", + "version": "v3.3.5", "source": { "type": "git", "url": "https://github.com/api-platform/core.git", - "reference": "59dca65e4f9aa2be6fd85fa944482a7d73eb5fc2" + "reference": "b5a93fb0bb855273aabb0807505ba61b68813246" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/api-platform/core/zipball/59dca65e4f9aa2be6fd85fa944482a7d73eb5fc2", - "reference": "59dca65e4f9aa2be6fd85fa944482a7d73eb5fc2", + "url": "https://api.github.com/repos/api-platform/core/zipball/b5a93fb0bb855273aabb0807505ba61b68813246", + "reference": "b5a93fb0bb855273aabb0807505ba61b68813246", "shasum": "" }, "require": { @@ -190,9 +190,9 @@ ], "support": { "issues": "https://github.com/api-platform/core/issues", - "source": "https://github.com/api-platform/core/tree/v3.3.3" + "source": "https://github.com/api-platform/core/tree/v3.3.5" }, - "time": "2024-05-10T11:16:59+00:00" + "time": "2024-05-29T05:48:47+00:00" }, { "name": "behat/transliterator", @@ -2329,16 +2329,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.29.0", + "version": "1.29.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "536889f2b340489d328f5ffb7b02bb6b183ddedc" + "reference": "fcaefacf2d5c417e928405b71b400d4ce10daaf4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/536889f2b340489d328f5ffb7b02bb6b183ddedc", - "reference": "536889f2b340489d328f5ffb7b02bb6b183ddedc", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/fcaefacf2d5c417e928405b71b400d4ce10daaf4", + "reference": "fcaefacf2d5c417e928405b71b400d4ce10daaf4", "shasum": "" }, "require": { @@ -2370,9 +2370,9 @@ "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.29.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.29.1" }, - "time": "2024-05-06T12:04:23+00:00" + "time": "2024-05-31T08:52:43+00:00" }, { "name": "psr/cache", @@ -2863,26 +2863,26 @@ }, { "name": "ramsey/uuid-doctrine", - "version": "2.0.0", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/ramsey/uuid-doctrine.git", - "reference": "b002676be0e5e342d857c47f1b68e24de6841d08" + "reference": "491e1bfa4d9d81e52a60470fa92c871f7eef919e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid-doctrine/zipball/b002676be0e5e342d857c47f1b68e24de6841d08", - "reference": "b002676be0e5e342d857c47f1b68e24de6841d08", + "url": "https://api.github.com/repos/ramsey/uuid-doctrine/zipball/491e1bfa4d9d81e52a60470fa92c871f7eef919e", + "reference": "491e1bfa4d9d81e52a60470fa92c871f7eef919e", "shasum": "" }, "require": { - "doctrine/dbal": "^2.8 || ^3.0", - "php": "^7.4 || ^8.0", + "doctrine/dbal": "^2.8 || ^3.0 || ^4.0", + "php": "^8.1", "ramsey/uuid": "^3.9.7 || ^4.0" }, "require-dev": { "captainhook/plugin-composer": "^5.3", - "doctrine/orm": "^2.5", + "doctrine/orm": "^2.5 || ^3.0", "ergebnis/composer-normalize": "^2.28.3", "mockery/mockery": "^1.5", "php-parallel-lint/php-console-highlighter": "^1.0", @@ -2892,12 +2892,9 @@ "phpstan/phpstan": "^1.9", "phpstan/phpstan-mockery": "^1.1", "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^9.5", - "psalm/plugin-mockery": "^1.1", - "psalm/plugin-phpunit": "^0.18.4", + "phpunit/phpunit": "^10.5", "ramsey/coding-standard": "^2.0.3", - "ramsey/conventional-commits": "^1.3", - "vimeo/psalm": "^5.4" + "ramsey/conventional-commits": "^1.3" }, "type": "library", "extra": { @@ -2934,7 +2931,7 @@ ], "support": { "issues": "https://github.com/ramsey/uuid-doctrine/issues", - "source": "https://github.com/ramsey/uuid-doctrine/tree/2.0.0" + "source": "https://github.com/ramsey/uuid-doctrine/tree/2.1.0" }, "funding": [ { @@ -2946,7 +2943,7 @@ "type": "tidelift" } ], - "time": "2022-12-20T23:38:28+00:00" + "time": "2024-05-27T00:00:21+00:00" }, { "name": "stof/doctrine-extensions-bundle", @@ -3030,16 +3027,16 @@ }, { "name": "symfony/asset", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/asset.git", - "reference": "743757ab1dfa7114a8a3c63aeb376dfcf4b0a191" + "reference": "c668aa320e26b7379540368832b9d1dd43d32603" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/asset/zipball/743757ab1dfa7114a8a3c63aeb376dfcf4b0a191", - "reference": "743757ab1dfa7114a8a3c63aeb376dfcf4b0a191", + "url": "https://api.github.com/repos/symfony/asset/zipball/c668aa320e26b7379540368832b9d1dd43d32603", + "reference": "c668aa320e26b7379540368832b9d1dd43d32603", "shasum": "" }, "require": { @@ -3079,7 +3076,7 @@ "description": "Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/asset/tree/v6.4.7" + "source": "https://github.com/symfony/asset/tree/v6.4.8" }, "funding": [ { @@ -3095,20 +3092,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/cache", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "b9e9b93c9817ec6c789c7943f5e54b57a041c16a" + "reference": "287142df5579ce223c485b3872df3efae8390984" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/b9e9b93c9817ec6c789c7943f5e54b57a041c16a", - "reference": "b9e9b93c9817ec6c789c7943f5e54b57a041c16a", + "url": "https://api.github.com/repos/symfony/cache/zipball/287142df5579ce223c485b3872df3efae8390984", + "reference": "287142df5579ce223c485b3872df3efae8390984", "shasum": "" }, "require": { @@ -3175,7 +3172,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v6.4.7" + "source": "https://github.com/symfony/cache/tree/v6.4.8" }, "funding": [ { @@ -3191,7 +3188,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/cache-contracts", @@ -3271,16 +3268,16 @@ }, { "name": "symfony/clock", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/clock.git", - "reference": "83667074bdae743f8cd884ac50b266d2af287ea8" + "reference": "7a4840efd17135cbd547e41ec49fb910ed4f8b98" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/clock/zipball/83667074bdae743f8cd884ac50b266d2af287ea8", - "reference": "83667074bdae743f8cd884ac50b266d2af287ea8", + "url": "https://api.github.com/repos/symfony/clock/zipball/7a4840efd17135cbd547e41ec49fb910ed4f8b98", + "reference": "7a4840efd17135cbd547e41ec49fb910ed4f8b98", "shasum": "" }, "require": { @@ -3325,7 +3322,7 @@ "time" ], "support": { - "source": "https://github.com/symfony/clock/tree/v6.4.7" + "source": "https://github.com/symfony/clock/tree/v6.4.8" }, "funding": [ { @@ -3341,20 +3338,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:51:39+00:00" }, { "name": "symfony/config", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "51da0e4494d81bd7b5b5bd80319c55d8e0d7f4ff" + "reference": "12e7e52515ce37191b193cf3365903c4f3951e35" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/51da0e4494d81bd7b5b5bd80319c55d8e0d7f4ff", - "reference": "51da0e4494d81bd7b5b5bd80319c55d8e0d7f4ff", + "url": "https://api.github.com/repos/symfony/config/zipball/12e7e52515ce37191b193cf3365903c4f3951e35", + "reference": "12e7e52515ce37191b193cf3365903c4f3951e35", "shasum": "" }, "require": { @@ -3400,7 +3397,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.4.7" + "source": "https://github.com/symfony/config/tree/v6.4.8" }, "funding": [ { @@ -3416,20 +3413,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/console", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "a170e64ae10d00ba89e2acbb590dc2e54da8ad8f" + "reference": "be5854cee0e8c7b110f00d695d11debdfa1a2a91" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/a170e64ae10d00ba89e2acbb590dc2e54da8ad8f", - "reference": "a170e64ae10d00ba89e2acbb590dc2e54da8ad8f", + "url": "https://api.github.com/repos/symfony/console/zipball/be5854cee0e8c7b110f00d695d11debdfa1a2a91", + "reference": "be5854cee0e8c7b110f00d695d11debdfa1a2a91", "shasum": "" }, "require": { @@ -3494,7 +3491,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.7" + "source": "https://github.com/symfony/console/tree/v6.4.8" }, "funding": [ { @@ -3510,20 +3507,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/dependency-injection", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "d8c5f9781b71c2a868ae9d0e5c9b283684740b6d" + "reference": "d3b618176e8c3a9e5772151c51eba0c52a0c771c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/d8c5f9781b71c2a868ae9d0e5c9b283684740b6d", - "reference": "d8c5f9781b71c2a868ae9d0e5c9b283684740b6d", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/d3b618176e8c3a9e5772151c51eba0c52a0c771c", + "reference": "d3b618176e8c3a9e5772151c51eba0c52a0c771c", "shasum": "" }, "require": { @@ -3575,7 +3572,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v6.4.7" + "source": "https://github.com/symfony/dependency-injection/tree/v6.4.8" }, "funding": [ { @@ -3591,7 +3588,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/deprecation-contracts", @@ -3662,16 +3659,16 @@ }, { "name": "symfony/doctrine-bridge", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/doctrine-bridge.git", - "reference": "0eb1189828f66c74697737e89a12b3aded8b748c" + "reference": "afbf291ccaf595c8ff6f4ed3943aa0ea479e4d04" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/0eb1189828f66c74697737e89a12b3aded8b748c", - "reference": "0eb1189828f66c74697737e89a12b3aded8b748c", + "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/afbf291ccaf595c8ff6f4ed3943aa0ea479e4d04", + "reference": "afbf291ccaf595c8ff6f4ed3943aa0ea479e4d04", "shasum": "" }, "require": { @@ -3750,7 +3747,7 @@ "description": "Provides integration for Doctrine with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/doctrine-bridge/tree/v6.4.7" + "source": "https://github.com/symfony/doctrine-bridge/tree/v6.4.8" }, "funding": [ { @@ -3766,20 +3763,20 @@ "type": "tidelift" } ], - "time": "2024-04-22T16:59:38+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/dotenv", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/dotenv.git", - "reference": "982a8d58c73a7d91d229bc20493b8ae13208741c" + "reference": "55aefa0029adff89ecffdb560820e945c7983f06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dotenv/zipball/982a8d58c73a7d91d229bc20493b8ae13208741c", - "reference": "982a8d58c73a7d91d229bc20493b8ae13208741c", + "url": "https://api.github.com/repos/symfony/dotenv/zipball/55aefa0029adff89ecffdb560820e945c7983f06", + "reference": "55aefa0029adff89ecffdb560820e945c7983f06", "shasum": "" }, "require": { @@ -3824,7 +3821,7 @@ "environment" ], "support": { - "source": "https://github.com/symfony/dotenv/tree/v6.4.7" + "source": "https://github.com/symfony/dotenv/tree/v6.4.8" }, "funding": [ { @@ -3840,20 +3837,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/error-handler", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "667a072466c6a53827ed7b119af93806b884cbb3" + "reference": "ef836152bf13472dc5fb5b08b0c0c4cfeddc0fcc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/667a072466c6a53827ed7b119af93806b884cbb3", - "reference": "667a072466c6a53827ed7b119af93806b884cbb3", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/ef836152bf13472dc5fb5b08b0c0c4cfeddc0fcc", + "reference": "ef836152bf13472dc5fb5b08b0c0c4cfeddc0fcc", "shasum": "" }, "require": { @@ -3899,7 +3896,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v6.4.7" + "source": "https://github.com/symfony/error-handler/tree/v6.4.8" }, "funding": [ { @@ -3915,20 +3912,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "d84384f3f67de3cb650db64d685d70395dacfc3f" + "reference": "8d7507f02b06e06815e56bb39aa0128e3806208b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d84384f3f67de3cb650db64d685d70395dacfc3f", - "reference": "d84384f3f67de3cb650db64d685d70395dacfc3f", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/8d7507f02b06e06815e56bb39aa0128e3806208b", + "reference": "8d7507f02b06e06815e56bb39aa0128e3806208b", "shasum": "" }, "require": { @@ -3979,7 +3976,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.4.7" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.4.8" }, "funding": [ { @@ -3995,7 +3992,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -4075,16 +4072,16 @@ }, { "name": "symfony/expression-language", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/expression-language.git", - "reference": "f64e152029200cf35da13e9e1444e5fc8ff7fdfa" + "reference": "0b63cb437741a42104d3ccc9bf60bbd8e1acbd2a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/expression-language/zipball/f64e152029200cf35da13e9e1444e5fc8ff7fdfa", - "reference": "f64e152029200cf35da13e9e1444e5fc8ff7fdfa", + "url": "https://api.github.com/repos/symfony/expression-language/zipball/0b63cb437741a42104d3ccc9bf60bbd8e1acbd2a", + "reference": "0b63cb437741a42104d3ccc9bf60bbd8e1acbd2a", "shasum": "" }, "require": { @@ -4119,7 +4116,7 @@ "description": "Provides an engine that can compile and evaluate expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/expression-language/tree/v6.4.7" + "source": "https://github.com/symfony/expression-language/tree/v6.4.8" }, "funding": [ { @@ -4135,27 +4132,29 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/filesystem", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "78dde75f8f6dbbca4ec436a4b0087f7af02076d4" + "reference": "4d37529150e7081c51b3c5d5718c55a04a9503f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/78dde75f8f6dbbca4ec436a4b0087f7af02076d4", - "reference": "78dde75f8f6dbbca4ec436a4b0087f7af02076d4", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/4d37529150e7081c51b3c5d5718c55a04a9503f3", + "reference": "4d37529150e7081c51b3c5d5718c55a04a9503f3", "shasum": "" }, "require": { "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8", - "symfony/process": "^5.4|^6.4" + "symfony/polyfill-mbstring": "~1.8" + }, + "require-dev": { + "symfony/process": "^5.4|^6.4|^7.0" }, "type": "library", "autoload": { @@ -4183,7 +4182,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.4.7" + "source": "https://github.com/symfony/filesystem/tree/v6.4.8" }, "funding": [ { @@ -4199,20 +4198,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/finder", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "511c48990be17358c23bf45c5d71ab85d40fb764" + "reference": "3ef977a43883215d560a2cecb82ec8e62131471c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/511c48990be17358c23bf45c5d71ab85d40fb764", - "reference": "511c48990be17358c23bf45c5d71ab85d40fb764", + "url": "https://api.github.com/repos/symfony/finder/zipball/3ef977a43883215d560a2cecb82ec8e62131471c", + "reference": "3ef977a43883215d560a2cecb82ec8e62131471c", "shasum": "" }, "require": { @@ -4247,7 +4246,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.4.7" + "source": "https://github.com/symfony/finder/tree/v6.4.8" }, "funding": [ { @@ -4263,7 +4262,7 @@ "type": "tidelift" } ], - "time": "2024-04-23T10:36:43+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/flex", @@ -4332,16 +4331,16 @@ }, { "name": "symfony/framework-bundle", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "58196b824903d203b71e580baac73eee29246ace" + "reference": "7c7739f87f1a8be1c2f5e7d28addfe763a917acb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/58196b824903d203b71e580baac73eee29246ace", - "reference": "58196b824903d203b71e580baac73eee29246ace", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/7c7739f87f1a8be1c2f5e7d28addfe763a917acb", + "reference": "7c7739f87f1a8be1c2f5e7d28addfe763a917acb", "shasum": "" }, "require": { @@ -4460,7 +4459,7 @@ "description": "Provides a tight integration between Symfony components and the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/framework-bundle/tree/v6.4.7" + "source": "https://github.com/symfony/framework-bundle/tree/v6.4.8" }, "funding": [ { @@ -4476,20 +4475,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/http-foundation", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "b4db6b833035477cb70e18d0ae33cb7c2b521759" + "reference": "27de8cc95e11db7a50b027e71caaab9024545947" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/b4db6b833035477cb70e18d0ae33cb7c2b521759", - "reference": "b4db6b833035477cb70e18d0ae33cb7c2b521759", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/27de8cc95e11db7a50b027e71caaab9024545947", + "reference": "27de8cc95e11db7a50b027e71caaab9024545947", "shasum": "" }, "require": { @@ -4537,7 +4536,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v6.4.7" + "source": "https://github.com/symfony/http-foundation/tree/v6.4.8" }, "funding": [ { @@ -4553,20 +4552,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/http-kernel", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "b7b5e6cdef670a0c82d015a966ffc7e855861a98" + "reference": "6c519aa3f32adcfd1d1f18d923f6b227d9acf3c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/b7b5e6cdef670a0c82d015a966ffc7e855861a98", - "reference": "b7b5e6cdef670a0c82d015a966ffc7e855861a98", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/6c519aa3f32adcfd1d1f18d923f6b227d9acf3c1", + "reference": "6c519aa3f32adcfd1d1f18d923f6b227d9acf3c1", "shasum": "" }, "require": { @@ -4651,7 +4650,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v6.4.7" + "source": "https://github.com/symfony/http-kernel/tree/v6.4.8" }, "funding": [ { @@ -4667,20 +4666,20 @@ "type": "tidelift" } ], - "time": "2024-04-29T11:24:44+00:00" + "time": "2024-06-02T16:06:25+00:00" }, { "name": "symfony/password-hasher", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/password-hasher.git", - "reference": "73afaed1d87f6127dcd71bc88e9a16fd9325cf1c" + "reference": "90ebbe946e5d64a5fad9ac9427e335045cf2bd31" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/password-hasher/zipball/73afaed1d87f6127dcd71bc88e9a16fd9325cf1c", - "reference": "73afaed1d87f6127dcd71bc88e9a16fd9325cf1c", + "url": "https://api.github.com/repos/symfony/password-hasher/zipball/90ebbe946e5d64a5fad9ac9427e335045cf2bd31", + "reference": "90ebbe946e5d64a5fad9ac9427e335045cf2bd31", "shasum": "" }, "require": { @@ -4723,7 +4722,7 @@ "password" ], "support": { - "source": "https://github.com/symfony/password-hasher/tree/v6.4.7" + "source": "https://github.com/symfony/password-hasher/tree/v6.4.8" }, "funding": [ { @@ -4739,7 +4738,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/polyfill-intl-grapheme", @@ -5057,79 +5056,18 @@ ], "time": "2024-01-29T20:11:03+00:00" }, - { - "name": "symfony/process", - "version": "v6.4.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "cdb1c81c145fd5aa9b0038bab694035020943381" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/cdb1c81c145fd5aa9b0038bab694035020943381", - "reference": "cdb1c81c145fd5aa9b0038bab694035020943381", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Process\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Executes commands in sub-processes", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/process/tree/v6.4.7" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-04-18T09:22:46+00:00" - }, { "name": "symfony/property-access", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "9174e2ec62563dfc15fbe84d1618613092e09d91" + "reference": "e4d9b00983612f9c0013ca37c61affdba2dd975a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/9174e2ec62563dfc15fbe84d1618613092e09d91", - "reference": "9174e2ec62563dfc15fbe84d1618613092e09d91", + "url": "https://api.github.com/repos/symfony/property-access/zipball/e4d9b00983612f9c0013ca37c61affdba2dd975a", + "reference": "e4d9b00983612f9c0013ca37c61affdba2dd975a", "shasum": "" }, "require": { @@ -5177,7 +5115,7 @@ "reflection" ], "support": { - "source": "https://github.com/symfony/property-access/tree/v6.4.7" + "source": "https://github.com/symfony/property-access/tree/v6.4.8" }, "funding": [ { @@ -5193,20 +5131,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/property-info", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "42778ca731b8796e02e237008f4ed871361ddfce" + "reference": "7f544bc6ceb1a6a2283c7af8e8621262c43b7ede" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/42778ca731b8796e02e237008f4ed871361ddfce", - "reference": "42778ca731b8796e02e237008f4ed871361ddfce", + "url": "https://api.github.com/repos/symfony/property-info/zipball/7f544bc6ceb1a6a2283c7af8e8621262c43b7ede", + "reference": "7f544bc6ceb1a6a2283c7af8e8621262c43b7ede", "shasum": "" }, "require": { @@ -5260,7 +5198,7 @@ "validator" ], "support": { - "source": "https://github.com/symfony/property-info/tree/v6.4.7" + "source": "https://github.com/symfony/property-info/tree/v6.4.8" }, "funding": [ { @@ -5276,20 +5214,20 @@ "type": "tidelift" } ], - "time": "2024-04-28T10:28:08+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/routing", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "276e06398f71fa2a973264d94f28150f93cfb907" + "reference": "8a40d0f9b01f0fbb80885d3ce0ad6714fb603a58" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/276e06398f71fa2a973264d94f28150f93cfb907", - "reference": "276e06398f71fa2a973264d94f28150f93cfb907", + "url": "https://api.github.com/repos/symfony/routing/zipball/8a40d0f9b01f0fbb80885d3ce0ad6714fb603a58", + "reference": "8a40d0f9b01f0fbb80885d3ce0ad6714fb603a58", "shasum": "" }, "require": { @@ -5343,7 +5281,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v6.4.7" + "source": "https://github.com/symfony/routing/tree/v6.4.8" }, "funding": [ { @@ -5359,20 +5297,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/runtime", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/runtime.git", - "reference": "20c90eb66bbf82fdb3ef74f2ea4ecf08518cbb5e" + "reference": "b4bfa2fd4cad1fee62f80b3dfe4eb674cc3302a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/runtime/zipball/20c90eb66bbf82fdb3ef74f2ea4ecf08518cbb5e", - "reference": "20c90eb66bbf82fdb3ef74f2ea4ecf08518cbb5e", + "url": "https://api.github.com/repos/symfony/runtime/zipball/b4bfa2fd4cad1fee62f80b3dfe4eb674cc3302a0", + "reference": "b4bfa2fd4cad1fee62f80b3dfe4eb674cc3302a0", "shasum": "" }, "require": { @@ -5422,7 +5360,7 @@ "runtime" ], "support": { - "source": "https://github.com/symfony/runtime/tree/v6.4.7" + "source": "https://github.com/symfony/runtime/tree/v6.4.8" }, "funding": [ { @@ -5438,20 +5376,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/security-bundle", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/security-bundle.git", - "reference": "c9112933215b9b3c48851eb6644263d5c9d93245" + "reference": "dfb286069b0332e1f1c21962133d17c0fbc1e5e7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-bundle/zipball/c9112933215b9b3c48851eb6644263d5c9d93245", - "reference": "c9112933215b9b3c48851eb6644263d5c9d93245", + "url": "https://api.github.com/repos/symfony/security-bundle/zipball/dfb286069b0332e1f1c21962133d17c0fbc1e5e7", + "reference": "dfb286069b0332e1f1c21962133d17c0fbc1e5e7", "shasum": "" }, "require": { @@ -5534,7 +5472,7 @@ "description": "Provides a tight integration of the Security component into the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/security-bundle/tree/v6.4.7" + "source": "https://github.com/symfony/security-bundle/tree/v6.4.8" }, "funding": [ { @@ -5550,20 +5488,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/security-core", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/security-core.git", - "reference": "54d35e432abd5c86bf7ba97e521168d364ac50b0" + "reference": "5fc7850ada5e8e03d78c1739c82c64d5e2f7d495" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-core/zipball/54d35e432abd5c86bf7ba97e521168d364ac50b0", - "reference": "54d35e432abd5c86bf7ba97e521168d364ac50b0", + "url": "https://api.github.com/repos/symfony/security-core/zipball/5fc7850ada5e8e03d78c1739c82c64d5e2f7d495", + "reference": "5fc7850ada5e8e03d78c1739c82c64d5e2f7d495", "shasum": "" }, "require": { @@ -5620,7 +5558,7 @@ "description": "Symfony Security Component - Core Library", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/security-core/tree/v6.4.7" + "source": "https://github.com/symfony/security-core/tree/v6.4.8" }, "funding": [ { @@ -5636,20 +5574,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/security-csrf", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/security-csrf.git", - "reference": "91fe7e829a8fe1e78bd3615c7a410dce6876325b" + "reference": "f46ab02b76311087873257071559edcaf6d7ab99" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-csrf/zipball/91fe7e829a8fe1e78bd3615c7a410dce6876325b", - "reference": "91fe7e829a8fe1e78bd3615c7a410dce6876325b", + "url": "https://api.github.com/repos/symfony/security-csrf/zipball/f46ab02b76311087873257071559edcaf6d7ab99", + "reference": "f46ab02b76311087873257071559edcaf6d7ab99", "shasum": "" }, "require": { @@ -5688,7 +5626,7 @@ "description": "Symfony Security Component - CSRF Library", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/security-csrf/tree/v6.4.7" + "source": "https://github.com/symfony/security-csrf/tree/v6.4.8" }, "funding": [ { @@ -5704,20 +5642,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/security-http", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/security-http.git", - "reference": "01643fd75e415bc463d63e86bb27afccf5477745" + "reference": "fb82ddec887dc67f3bcf4d6df3cb8efd529be104" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-http/zipball/01643fd75e415bc463d63e86bb27afccf5477745", - "reference": "01643fd75e415bc463d63e86bb27afccf5477745", + "url": "https://api.github.com/repos/symfony/security-http/zipball/fb82ddec887dc67f3bcf4d6df3cb8efd529be104", + "reference": "fb82ddec887dc67f3bcf4d6df3cb8efd529be104", "shasum": "" }, "require": { @@ -5776,7 +5714,7 @@ "description": "Symfony Security Component - HTTP Integration", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/security-http/tree/v6.4.7" + "source": "https://github.com/symfony/security-http/tree/v6.4.8" }, "funding": [ { @@ -5792,20 +5730,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T17:31:08+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/serializer", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "73820ab43d12c2f29445080004054b0066082bf1" + "reference": "d6eda9966a3e5d1823c1cedf41bf98f8ed969d7c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/73820ab43d12c2f29445080004054b0066082bf1", - "reference": "73820ab43d12c2f29445080004054b0066082bf1", + "url": "https://api.github.com/repos/symfony/serializer/zipball/d6eda9966a3e5d1823c1cedf41bf98f8ed969d7c", + "reference": "d6eda9966a3e5d1823c1cedf41bf98f8ed969d7c", "shasum": "" }, "require": { @@ -5874,7 +5812,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v6.4.7" + "source": "https://github.com/symfony/serializer/tree/v6.4.8" }, "funding": [ { @@ -5890,7 +5828,7 @@ "type": "tidelift" } ], - "time": "2024-04-23T09:00:49+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/service-contracts", @@ -5977,16 +5915,16 @@ }, { "name": "symfony/stopwatch", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "ffec95ba269e541eb2232126c0c20f83086b5c68" + "reference": "63e069eb616049632cde9674c46957819454b8aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/ffec95ba269e541eb2232126c0c20f83086b5c68", - "reference": "ffec95ba269e541eb2232126c0c20f83086b5c68", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/63e069eb616049632cde9674c46957819454b8aa", + "reference": "63e069eb616049632cde9674c46957819454b8aa", "shasum": "" }, "require": { @@ -6019,7 +5957,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v6.4.7" + "source": "https://github.com/symfony/stopwatch/tree/v6.4.8" }, "funding": [ { @@ -6035,20 +5973,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/string", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "ffeb9591c61f65a68d47f77d12b83fa530227a69" + "reference": "a147c0f826c4a1f3afb763ab8e009e37c877a44d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/ffeb9591c61f65a68d47f77d12b83fa530227a69", - "reference": "ffeb9591c61f65a68d47f77d12b83fa530227a69", + "url": "https://api.github.com/repos/symfony/string/zipball/a147c0f826c4a1f3afb763ab8e009e37c877a44d", + "reference": "a147c0f826c4a1f3afb763ab8e009e37c877a44d", "shasum": "" }, "require": { @@ -6105,7 +6043,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.4.7" + "source": "https://github.com/symfony/string/tree/v6.4.8" }, "funding": [ { @@ -6121,7 +6059,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/translation-contracts", @@ -6203,16 +6141,16 @@ }, { "name": "symfony/twig-bridge", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/twig-bridge.git", - "reference": "544e47a4f2d4a786abd65531d2c326fb6e53da72" + "reference": "57de1b7d7499053a2c5beb9344751e8bfd332649" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/544e47a4f2d4a786abd65531d2c326fb6e53da72", - "reference": "544e47a4f2d4a786abd65531d2c326fb6e53da72", + "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/57de1b7d7499053a2c5beb9344751e8bfd332649", + "reference": "57de1b7d7499053a2c5beb9344751e8bfd332649", "shasum": "" }, "require": { @@ -6292,7 +6230,7 @@ "description": "Provides integration for Twig with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/twig-bridge/tree/v6.4.7" + "source": "https://github.com/symfony/twig-bridge/tree/v6.4.8" }, "funding": [ { @@ -6308,20 +6246,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/twig-bundle", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/twig-bundle.git", - "reference": "33cf43405366beb08b9b95db9cfebe2a8a63cb03" + "reference": "ef17bc8fc2cb2376b235cd1b98f0275a78c5ba65" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bundle/zipball/33cf43405366beb08b9b95db9cfebe2a8a63cb03", - "reference": "33cf43405366beb08b9b95db9cfebe2a8a63cb03", + "url": "https://api.github.com/repos/symfony/twig-bundle/zipball/ef17bc8fc2cb2376b235cd1b98f0275a78c5ba65", + "reference": "ef17bc8fc2cb2376b235cd1b98f0275a78c5ba65", "shasum": "" }, "require": { @@ -6376,7 +6314,7 @@ "description": "Provides a tight integration of Twig into the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/twig-bundle/tree/v6.4.7" + "source": "https://github.com/symfony/twig-bundle/tree/v6.4.8" }, "funding": [ { @@ -6392,20 +6330,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/validator", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "4761a08d161d823ec281151ade0905547e0502a7" + "reference": "dab2781371d54c86f6b25623ab16abb2dde2870c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/4761a08d161d823ec281151ade0905547e0502a7", - "reference": "4761a08d161d823ec281151ade0905547e0502a7", + "url": "https://api.github.com/repos/symfony/validator/zipball/dab2781371d54c86f6b25623ab16abb2dde2870c", + "reference": "dab2781371d54c86f6b25623ab16abb2dde2870c", "shasum": "" }, "require": { @@ -6452,7 +6390,8 @@ "Symfony\\Component\\Validator\\": "" }, "exclude-from-classmap": [ - "/Tests/" + "/Tests/", + "/Resources/bin/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -6472,7 +6411,7 @@ "description": "Provides tools to validate values", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/validator/tree/v6.4.7" + "source": "https://github.com/symfony/validator/tree/v6.4.8" }, "funding": [ { @@ -6488,20 +6427,20 @@ "type": "tidelift" } ], - "time": "2024-04-28T10:38:38+00:00" + "time": "2024-06-02T15:48:50+00:00" }, { "name": "symfony/var-dumper", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "7a9cd977cd1c5fed3694bee52990866432af07d7" + "reference": "ad23ca4312395f0a8a8633c831ef4c4ee542ed25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/7a9cd977cd1c5fed3694bee52990866432af07d7", - "reference": "7a9cd977cd1c5fed3694bee52990866432af07d7", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/ad23ca4312395f0a8a8633c831ef4c4ee542ed25", + "reference": "ad23ca4312395f0a8a8633c831ef4c4ee542ed25", "shasum": "" }, "require": { @@ -6557,7 +6496,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.4.7" + "source": "https://github.com/symfony/var-dumper/tree/v6.4.8" }, "funding": [ { @@ -6573,20 +6512,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/var-exporter", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "825f9b00c37bbe1c1691cc1aff9b5451fc9b4405" + "reference": "792ca836f99b340f2e9ca9497c7953948c49a504" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/825f9b00c37bbe1c1691cc1aff9b5451fc9b4405", - "reference": "825f9b00c37bbe1c1691cc1aff9b5451fc9b4405", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/792ca836f99b340f2e9ca9497c7953948c49a504", + "reference": "792ca836f99b340f2e9ca9497c7953948c49a504", "shasum": "" }, "require": { @@ -6634,7 +6573,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v6.4.7" + "source": "https://github.com/symfony/var-exporter/tree/v6.4.8" }, "funding": [ { @@ -6650,20 +6589,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/web-link", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/web-link.git", - "reference": "63e03d53df4ddb7e054d7dc5a43f58be9c67bd7a" + "reference": "304c67cefe7128ea3957e9bb1ac6ce08a90a635b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/web-link/zipball/63e03d53df4ddb7e054d7dc5a43f58be9c67bd7a", - "reference": "63e03d53df4ddb7e054d7dc5a43f58be9c67bd7a", + "url": "https://api.github.com/repos/symfony/web-link/zipball/304c67cefe7128ea3957e9bb1ac6ce08a90a635b", + "reference": "304c67cefe7128ea3957e9bb1ac6ce08a90a635b", "shasum": "" }, "require": { @@ -6717,7 +6656,7 @@ "push" ], "support": { - "source": "https://github.com/symfony/web-link/tree/v6.4.7" + "source": "https://github.com/symfony/web-link/tree/v6.4.8" }, "funding": [ { @@ -6733,20 +6672,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/yaml", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "53e8b1ef30a65f78eac60fddc5ee7ebbbdb1dee0" + "reference": "52903de178d542850f6f341ba92995d3d63e60c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/53e8b1ef30a65f78eac60fddc5ee7ebbbdb1dee0", - "reference": "53e8b1ef30a65f78eac60fddc5ee7ebbbdb1dee0", + "url": "https://api.github.com/repos/symfony/yaml/zipball/52903de178d542850f6f341ba92995d3d63e60c9", + "reference": "52903de178d542850f6f341ba92995d3d63e60c9", "shasum": "" }, "require": { @@ -6789,7 +6728,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v6.4.7" + "source": "https://github.com/symfony/yaml/tree/v6.4.8" }, "funding": [ { @@ -6805,7 +6744,7 @@ "type": "tidelift" } ], - "time": "2024-04-28T10:28:08+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "twig/twig", @@ -7004,21 +6943,21 @@ "packages-dev": [ { "name": "dama/doctrine-test-bundle", - "version": "v8.1.0", + "version": "v8.2.0", "source": { "type": "git", "url": "https://github.com/dmaicher/doctrine-test-bundle.git", - "reference": "21b4dd73546991c7df34ba92ecbf305a1ae5a0ee" + "reference": "1f81a280ea63f049d24e9c8ce00e557b18e0ff2f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dmaicher/doctrine-test-bundle/zipball/21b4dd73546991c7df34ba92ecbf305a1ae5a0ee", - "reference": "21b4dd73546991c7df34ba92ecbf305a1ae5a0ee", + "url": "https://api.github.com/repos/dmaicher/doctrine-test-bundle/zipball/1f81a280ea63f049d24e9c8ce00e557b18e0ff2f", + "reference": "1f81a280ea63f049d24e9c8ce00e557b18e0ff2f", "shasum": "" }, "require": { "doctrine/dbal": "^3.3 || ^4.0", - "doctrine/doctrine-bundle": "^2.2.2", + "doctrine/doctrine-bundle": "^2.11.0", "php": "^7.4 || ^8.0", "psr/cache": "^1.0 || ^2.0 || ^3.0", "symfony/cache": "^5.4 || ^6.3 || ^7.0", @@ -7065,9 +7004,9 @@ ], "support": { "issues": "https://github.com/dmaicher/doctrine-test-bundle/issues", - "source": "https://github.com/dmaicher/doctrine-test-bundle/tree/v8.1.0" + "source": "https://github.com/dmaicher/doctrine-test-bundle/tree/v8.2.0" }, - "time": "2024-05-21T18:06:21+00:00" + "time": "2024-05-28T15:41:06+00:00" }, { "name": "doctrine/data-fixtures", @@ -7155,16 +7094,16 @@ }, { "name": "doctrine/doctrine-fixtures-bundle", - "version": "3.6.0", + "version": "3.6.1", "source": { "type": "git", "url": "https://github.com/doctrine/DoctrineFixturesBundle.git", - "reference": "87f5d53708a3855aa018bf0a00d0d4b0ef58a956" + "reference": "d13a08ebf244f74c8adb8ff15aa55d01c404e534" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineFixturesBundle/zipball/87f5d53708a3855aa018bf0a00d0d4b0ef58a956", - "reference": "87f5d53708a3855aa018bf0a00d0d4b0ef58a956", + "url": "https://api.github.com/repos/doctrine/DoctrineFixturesBundle/zipball/d13a08ebf244f74c8adb8ff15aa55d01c404e534", + "reference": "d13a08ebf244f74c8adb8ff15aa55d01c404e534", "shasum": "" }, "require": { @@ -7222,7 +7161,7 @@ ], "support": { "issues": "https://github.com/doctrine/DoctrineFixturesBundle/issues", - "source": "https://github.com/doctrine/DoctrineFixturesBundle/tree/3.6.0" + "source": "https://github.com/doctrine/DoctrineFixturesBundle/tree/3.6.1" }, "funding": [ { @@ -7238,7 +7177,7 @@ "type": "tidelift" } ], - "time": "2024-05-02T18:06:53+00:00" + "time": "2024-05-07T07:16:35+00:00" }, { "name": "fakerphp/faker", @@ -8992,16 +8931,16 @@ }, { "name": "symfony/browser-kit", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", - "reference": "c276856598f70e96f75403fc04841cec1dc56e74" + "reference": "62ab90b92066ef6cce5e79365625b4b1432464c8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/browser-kit/zipball/c276856598f70e96f75403fc04841cec1dc56e74", - "reference": "c276856598f70e96f75403fc04841cec1dc56e74", + "url": "https://api.github.com/repos/symfony/browser-kit/zipball/62ab90b92066ef6cce5e79365625b4b1432464c8", + "reference": "62ab90b92066ef6cce5e79365625b4b1432464c8", "shasum": "" }, "require": { @@ -9040,7 +8979,7 @@ "description": "Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/browser-kit/tree/v6.4.7" + "source": "https://github.com/symfony/browser-kit/tree/v6.4.8" }, "funding": [ { @@ -9056,20 +8995,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/css-selector", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "1c5d5c2103c3762aff27a27e1e2409e30a79083b" + "reference": "4b61b02fe15db48e3687ce1c45ea385d1780fe08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/1c5d5c2103c3762aff27a27e1e2409e30a79083b", - "reference": "1c5d5c2103c3762aff27a27e1e2409e30a79083b", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/4b61b02fe15db48e3687ce1c45ea385d1780fe08", + "reference": "4b61b02fe15db48e3687ce1c45ea385d1780fe08", "shasum": "" }, "require": { @@ -9105,7 +9044,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v6.4.7" + "source": "https://github.com/symfony/css-selector/tree/v6.4.8" }, "funding": [ { @@ -9121,20 +9060,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/dom-crawler", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "2088c5da700b1e7a8689fffc10dda6c1f643deea" + "reference": "105b56a0305d219349edeb60a800082eca864e4b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/2088c5da700b1e7a8689fffc10dda6c1f643deea", - "reference": "2088c5da700b1e7a8689fffc10dda6c1f643deea", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/105b56a0305d219349edeb60a800082eca864e4b", + "reference": "105b56a0305d219349edeb60a800082eca864e4b", "shasum": "" }, "require": { @@ -9172,7 +9111,7 @@ "description": "Eases DOM navigation for HTML and XML documents", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dom-crawler/tree/v6.4.7" + "source": "https://github.com/symfony/dom-crawler/tree/v6.4.8" }, "funding": [ { @@ -9188,20 +9127,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/http-client", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "3683d8107cf1efdd24795cc5f7482be1eded34ac" + "reference": "61faba993e620fc22d4f0ab3b6bcf8fbb0d44b05" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/3683d8107cf1efdd24795cc5f7482be1eded34ac", - "reference": "3683d8107cf1efdd24795cc5f7482be1eded34ac", + "url": "https://api.github.com/repos/symfony/http-client/zipball/61faba993e620fc22d4f0ab3b6bcf8fbb0d44b05", + "reference": "61faba993e620fc22d4f0ab3b6bcf8fbb0d44b05", "shasum": "" }, "require": { @@ -9265,7 +9204,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v6.4.7" + "source": "https://github.com/symfony/http-client/tree/v6.4.8" }, "funding": [ { @@ -9281,7 +9220,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/http-client-contracts", @@ -9363,16 +9302,16 @@ }, { "name": "symfony/maker-bundle", - "version": "v1.59.1", + "version": "v1.60.0", "source": { "type": "git", "url": "https://github.com/symfony/maker-bundle.git", - "reference": "b87b1b25c607a8a50832395bc751c784946a0350" + "reference": "c305a02a22974670f359d4274c9431e1a191f559" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/maker-bundle/zipball/b87b1b25c607a8a50832395bc751c784946a0350", - "reference": "b87b1b25c607a8a50832395bc751c784946a0350", + "url": "https://api.github.com/repos/symfony/maker-bundle/zipball/c305a02a22974670f359d4274c9431e1a191f559", + "reference": "c305a02a22974670f359d4274c9431e1a191f559", "shasum": "" }, "require": { @@ -9435,7 +9374,7 @@ ], "support": { "issues": "https://github.com/symfony/maker-bundle/issues", - "source": "https://github.com/symfony/maker-bundle/tree/v1.59.1" + "source": "https://github.com/symfony/maker-bundle/tree/v1.60.0" }, "funding": [ { @@ -9451,20 +9390,20 @@ "type": "tidelift" } ], - "time": "2024-05-06T03:59:59+00:00" + "time": "2024-06-10T06:03:18+00:00" }, { "name": "symfony/phpunit-bridge", - "version": "v7.0.7", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/phpunit-bridge.git", - "reference": "0a0b90ba08b9a03e09ad49f8d613bdf3eca3a7a9" + "reference": "3e1cb8c4dee341cfe96ae9fe29b1acda52a6bb16" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/0a0b90ba08b9a03e09ad49f8d613bdf3eca3a7a9", - "reference": "0a0b90ba08b9a03e09ad49f8d613bdf3eca3a7a9", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/3e1cb8c4dee341cfe96ae9fe29b1acda52a6bb16", + "reference": "3e1cb8c4dee341cfe96ae9fe29b1acda52a6bb16", "shasum": "" }, "require": { @@ -9496,7 +9435,8 @@ "Symfony\\Bridge\\PhpUnit\\": "" }, "exclude-from-classmap": [ - "/Tests/" + "/Tests/", + "/bin/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -9516,7 +9456,7 @@ "description": "Provides utilities for PHPUnit, especially user deprecation notices management", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/phpunit-bridge/tree/v7.0.7" + "source": "https://github.com/symfony/phpunit-bridge/tree/v7.1.1" }, "funding": [ { @@ -9532,20 +9472,81 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:29:19+00:00" + "time": "2024-06-04T06:50:37+00:00" }, { - "name": "symfony/web-profiler-bundle", - "version": "v6.4.7", + "name": "symfony/process", + "version": "v6.4.8", "source": { "type": "git", - "url": "https://github.com/symfony/web-profiler-bundle.git", - "reference": "60fd8e550e08308ff8d2e88cfc50bb6c040a2fc3" + "url": "https://github.com/symfony/process.git", + "reference": "8d92dd79149f29e89ee0f480254db595f6a6a2c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/60fd8e550e08308ff8d2e88cfc50bb6c040a2fc3", - "reference": "60fd8e550e08308ff8d2e88cfc50bb6c040a2fc3", + "url": "https://api.github.com/repos/symfony/process/zipball/8d92dd79149f29e89ee0f480254db595f6a6a2c5", + "reference": "8d92dd79149f29e89ee0f480254db595f6a6a2c5", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v6.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T14:49:08+00:00" + }, + { + "name": "symfony/web-profiler-bundle", + "version": "v6.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/web-profiler-bundle.git", + "reference": "bcc806d1360991de3bf78ac5ca0202db85de9bfc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/bcc806d1360991de3bf78ac5ca0202db85de9bfc", + "reference": "bcc806d1360991de3bf78ac5ca0202db85de9bfc", "shasum": "" }, "require": { @@ -9598,7 +9599,7 @@ "dev" ], "support": { - "source": "https://github.com/symfony/web-profiler-bundle/tree/v6.4.7" + "source": "https://github.com/symfony/web-profiler-bundle/tree/v6.4.8" }, "funding": [ { @@ -9614,7 +9615,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "theseer/tokenizer", @@ -9783,16 +9784,16 @@ }, { "name": "zenstruck/foundry", - "version": "v1.37.0", + "version": "v1.38.0", "source": { "type": "git", "url": "https://github.com/zenstruck/foundry.git", - "reference": "e01d77f01d2837e568ed92d226e6e778c37319a4" + "reference": "fd3c763de120445878077e54c608d8d75a3cc22d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zenstruck/foundry/zipball/e01d77f01d2837e568ed92d226e6e778c37319a4", - "reference": "e01d77f01d2837e568ed92d226e6e778c37319a4", + "url": "https://api.github.com/repos/zenstruck/foundry/zipball/fd3c763de120445878077e54c608d8d75a3cc22d", + "reference": "fd3c763de120445878077e54c608d8d75a3cc22d", "shasum": "" }, "require": { @@ -9809,7 +9810,7 @@ "doctrine/mongodb-odm": "2.5.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4", + "bamarni/composer-bin-plugin": "^1.8", "dama/doctrine-test-bundle": "^7.0|^8.0", "doctrine/doctrine-bundle": "^2.5", "doctrine/doctrine-migrations-bundle": "^2.2|^3.0", @@ -9834,10 +9835,12 @@ }, "autoload": { "files": [ - "src/functions.php" + "src/functions.php", + "src/Persistence/functions.php" ], "psr-4": { - "Zenstruck\\Foundry\\": "src/" + "Zenstruck\\Foundry\\": "src/", + "Zenstruck\\Foundry\\Utils\\Rector\\": "utils/rector/src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -9863,7 +9866,7 @@ ], "support": { "issues": "https://github.com/zenstruck/foundry/issues", - "source": "https://github.com/zenstruck/foundry/tree/v1.37.0" + "source": "https://github.com/zenstruck/foundry/tree/v1.38.0" }, "funding": [ { @@ -9871,7 +9874,7 @@ "type": "github" } ], - "time": "2024-03-20T15:09:26+00:00" + "time": "2024-06-07T23:04:21+00:00" } ], "aliases": [], diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml index b247cd0..9979dcc 100644 --- a/config/packages/doctrine.yaml +++ b/config/packages/doctrine.yaml @@ -1,24 +1,34 @@ doctrine: dbal: - url: '%env(resolve:DATABASE_URL)%' - profiling_collect_backtrace: '%kernel.debug%' - use_savepoints: true - mapping_types: - enum: string + connections: + default: + url: '%env(resolve:DATABASE_URL)%' + profiling_collect_backtrace: '%kernel.debug%' + mapping_types: + enum: string + og_1: + url: '%env(resolve:OG_1_DATABASE_URL)%' + default_connection: default + orm: - auto_generate_proxy_classes: true - enable_lazy_ghost_objects: true - report_fields_where_declared: true - validate_xml_mapping: true - naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware - auto_mapping: true - mappings: - App: - type: attribute - is_bundle: false - dir: '%kernel.project_dir%/src/Entity' - prefix: 'App\Entity' - alias: App + default_entity_manager: default + entity_managers: + default: + auto_mapping: true + connection: default + naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware + report_fields_where_declared: true + mappings: + App: + is_bundle: false + type: attribute + dir: '%kernel.project_dir%/src/Entity' + prefix: 'App\Entity' + alias: App + + og_1: + connection: og_1 + controller_resolver: auto_mapping: true diff --git a/docker/xdebug.ini b/docker/xdebug.ini index aa01684..af39592 100644 --- a/docker/xdebug.ini +++ b/docker/xdebug.ini @@ -1,4 +1,5 @@ xdebug.mode=debug -xdebug.start_with_request=yes +xdebug.start_with_request=trigger +xdebug.discover_client_host = 1 xdebug.client_host=${XDEBUG_CLIENT_HOST} xdebug.client_port=${XDEBUG_CLIENT_PORT} \ No newline at end of file diff --git a/migrations/.gitignore b/migrations/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/migrations/Version20240606102152.php b/migrations/Version20240606102152.php deleted file mode 100644 index 3415b95..0000000 --- a/migrations/Version20240606102152.php +++ /dev/null @@ -1,47 +0,0 @@ -addSql('CREATE TABLE hardware (id INT AUTO_INCREMENT NOT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, type VARCHAR(255) DEFAULT NULL, name VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_FE99E9E0D17F50A6 (uuid), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE hardware_profile (id INT AUTO_INCREMENT NOT NULL, organizational_unit_id INT DEFAULT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, comments VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_2D9A2460D17F50A6 (uuid), INDEX IDX_2D9A2460FB84408A (organizational_unit_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE hardware_profile_hardware (hardware_profile_id INT NOT NULL, hardware_id INT NOT NULL, INDEX IDX_18C7E12CFA495C1 (hardware_profile_id), INDEX IDX_18C7E12C9CC762B (hardware_id), PRIMARY KEY(hardware_profile_id, hardware_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - $this->addSql('ALTER TABLE hardware_profile ADD CONSTRAINT FK_2D9A2460FB84408A FOREIGN KEY (organizational_unit_id) REFERENCES organizational_unit (id)'); - $this->addSql('ALTER TABLE hardware_profile_hardware ADD CONSTRAINT FK_18C7E12CFA495C1 FOREIGN KEY (hardware_profile_id) REFERENCES hardware_profile (id) ON DELETE CASCADE'); - $this->addSql('ALTER TABLE hardware_profile_hardware ADD CONSTRAINT FK_18C7E12C9CC762B FOREIGN KEY (hardware_id) REFERENCES hardware (id) ON DELETE CASCADE'); - $this->addSql('ALTER TABLE client ADD hardware_profile_id INT DEFAULT NULL'); - $this->addSql('ALTER TABLE client ADD CONSTRAINT FK_C7440455CFA495C1 FOREIGN KEY (hardware_profile_id) REFERENCES hardware_profile (id)'); - $this->addSql('CREATE INDEX IDX_C7440455CFA495C1 ON client (hardware_profile_id)'); - } - - public function down(Schema $schema): void - { - // this down() migration is auto-generated, please modify it to your needs - $this->addSql('ALTER TABLE client DROP FOREIGN KEY FK_C7440455CFA495C1'); - $this->addSql('ALTER TABLE hardware_profile DROP FOREIGN KEY FK_2D9A2460FB84408A'); - $this->addSql('ALTER TABLE hardware_profile_hardware DROP FOREIGN KEY FK_18C7E12CFA495C1'); - $this->addSql('ALTER TABLE hardware_profile_hardware DROP FOREIGN KEY FK_18C7E12C9CC762B'); - $this->addSql('DROP TABLE hardware'); - $this->addSql('DROP TABLE hardware_profile'); - $this->addSql('DROP TABLE hardware_profile_hardware'); - $this->addSql('DROP INDEX IDX_C7440455CFA495C1 ON client'); - $this->addSql('ALTER TABLE client DROP hardware_profile_id'); - } -} diff --git a/migrations/Version20240606081620.php b/migrations/Version20240611090540.php similarity index 65% rename from migrations/Version20240606081620.php rename to migrations/Version20240611090540.php index 498f6b2..5f4e3cb 100644 --- a/migrations/Version20240606081620.php +++ b/migrations/Version20240611090540.php @@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ -final class Version20240606081620 extends AbstractMigration +final class Version20240611090540 extends AbstractMigration { public function getDescription(): string { @@ -20,12 +20,11 @@ final class Version20240606081620 extends AbstractMigration public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs - $this->addSql('CREATE TABLE aulas (idaula INT AUTO_INCREMENT NOT NULL, nombreaula VARCHAR(255) NOT NULL, idcentro INT NOT NULL, urlfoto VARCHAR(255) NOT NULL, cagnon TINYINT(1) NOT NULL, pizarra TINYINT(1) NOT NULL, grupoid INT NOT NULL, ubicacion VARCHAR(255) NOT NULL, comentarios VARCHAR(255) NOT NULL, puestos INT NOT NULL, horaresevini TINYINT(1) NOT NULL, horaresevfin TINYINT(1) NOT NULL, modomul TINYINT(1) NOT NULL, ipmul VARCHAR(255) NOT NULL, pormul VARCHAR(255) NOT NULL, velmul VARCHAR(255) NOT NULL, router VARCHAR(255) NOT NULL, netmask VARCHAR(255) NOT NULL, dns VARCHAR(255) NOT NULL, proxy VARCHAR(255) NOT NULL, ntp VARCHAR(255) NOT NULL, modp2p VARCHAR(255) NOT NULL, timep2p VARCHAR(255) NOT NULL, validacion TINYINT(1) NOT NULL, paginalogin VARCHAR(255) NOT NULL, paginavalidacion VARCHAR(255) NOT NULL, inremotepc VARCHAR(255) NOT NULL, oglivedir VARCHAR(255) NOT NULL, PRIMARY KEY(idaula)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE centros (idcentro INT AUTO_INCREMENT NOT NULL, nombrecentro VARCHAR(255) NOT NULL, identidad INT NOT NULL, comentarios VARCHAR(255) DEFAULT NULL, directorio VARCHAR(255) DEFAULT NULL, PRIMARY KEY(idcentro)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE client (id INT AUTO_INCREMENT NOT NULL, organizational_unit_id INT DEFAULT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, serial_number VARCHAR(255) DEFAULT NULL, netiface VARCHAR(255) DEFAULT NULL, net_driver VARCHAR(255) DEFAULT NULL, mac VARCHAR(255) DEFAULT NULL, ip VARCHAR(255) DEFAULT NULL, status VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_C7440455D17F50A6 (uuid), INDEX IDX_C7440455FB84408A (organizational_unit_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE gruposordenadores (idgrupo INT AUTO_INCREMENT NOT NULL, nombregrupoordenador VARCHAR(255) NOT NULL, idaula VARCHAR(255) NOT NULL, grupoid VARCHAR(255) NOT NULL, comentarios VARCHAR(255) NOT NULL, PRIMARY KEY(idgrupo)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE client (id INT AUTO_INCREMENT NOT NULL, organizational_unit_id INT DEFAULT NULL, hardware_profile_id INT DEFAULT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, serial_number VARCHAR(255) DEFAULT NULL, netiface VARCHAR(255) DEFAULT NULL, net_driver VARCHAR(255) DEFAULT NULL, mac VARCHAR(255) DEFAULT NULL, ip VARCHAR(255) DEFAULT NULL, status VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_C7440455D17F50A6 (uuid), INDEX IDX_C7440455FB84408A (organizational_unit_id), INDEX IDX_C7440455CFA495C1 (hardware_profile_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE hardware (id INT AUTO_INCREMENT NOT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, type VARCHAR(255) DEFAULT NULL, name VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_FE99E9E0D17F50A6 (uuid), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE hardware_profile (id INT AUTO_INCREMENT NOT NULL, organizational_unit_id INT DEFAULT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, comments VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_2D9A2460D17F50A6 (uuid), INDEX IDX_2D9A2460FB84408A (organizational_unit_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE hardware_profile_hardware (hardware_profile_id INT NOT NULL, hardware_id INT NOT NULL, INDEX IDX_18C7E12CFA495C1 (hardware_profile_id), INDEX IDX_18C7E12C9CC762B (hardware_id), PRIMARY KEY(hardware_profile_id, hardware_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE network_settings (id INT AUTO_INCREMENT NOT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, proxy VARCHAR(255) DEFAULT NULL, dns VARCHAR(255) DEFAULT NULL, netmask VARCHAR(255) DEFAULT NULL, router VARCHAR(255) DEFAULT NULL, ntp VARCHAR(255) DEFAULT NULL, p2p_time INT DEFAULT NULL, p2p_mode VARCHAR(255) DEFAULT NULL, mcast_ip VARCHAR(255) DEFAULT NULL, mcast_speed INT NOT NULL, mcast_mode VARCHAR(255) DEFAULT NULL, mcast_port INT DEFAULT NULL, UNIQUE INDEX UNIQ_48869B54D17F50A6 (uuid), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ordenadores (idordenador INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(idordenador)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE organizational_unit (id INT AUTO_INCREMENT NOT NULL, parent_id INT DEFAULT NULL, network_settings_id INT DEFAULT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, comments VARCHAR(255) DEFAULT NULL, path VARCHAR(255) DEFAULT NULL, level INT DEFAULT NULL, slug VARCHAR(255) DEFAULT NULL, type VARCHAR(255) NOT NULL, location VARCHAR(255) DEFAULT NULL, projector TINYINT(1) DEFAULT NULL, board TINYINT(1) DEFAULT NULL, capacity INT DEFAULT NULL, name VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_749AEB2DD17F50A6 (uuid), INDEX IDX_749AEB2D727ACA70 (parent_id), INDEX IDX_749AEB2D9B9A36D0 (network_settings_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE refresh_tokens (id INT AUTO_INCREMENT NOT NULL, refresh_token VARCHAR(128) NOT NULL, username VARCHAR(255) NOT NULL, valid DATETIME NOT NULL, UNIQUE INDEX UNIQ_9BACE7E1C74F2195 (refresh_token), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, username VARCHAR(180) NOT NULL, roles JSON NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_8D93D649D17F50A6 (uuid), UNIQUE INDEX UNIQ_IDENTIFIER_USERNAME (username), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); @@ -33,6 +32,10 @@ final class Version20240606081620 extends AbstractMigration $this->addSql('CREATE TABLE user_group (id INT AUTO_INCREMENT NOT NULL, uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', migration_id VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, created_by VARCHAR(255) DEFAULT NULL, updated_by VARCHAR(255) DEFAULT NULL, permissions JSON NOT NULL COMMENT \'(DC2Type:json)\', name VARCHAR(255) NOT NULL, enabled TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_8F02BF9DD17F50A6 (uuid), UNIQUE INDEX UNIQ_IDENTIFIER_NAME (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE user_group_user (user_group_id INT NOT NULL, user_id INT NOT NULL, INDEX IDX_3AE4BD51ED93D47 (user_group_id), INDEX IDX_3AE4BD5A76ED395 (user_id), PRIMARY KEY(user_group_id, user_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('ALTER TABLE client ADD CONSTRAINT FK_C7440455FB84408A FOREIGN KEY (organizational_unit_id) REFERENCES organizational_unit (id)'); + $this->addSql('ALTER TABLE client ADD CONSTRAINT FK_C7440455CFA495C1 FOREIGN KEY (hardware_profile_id) REFERENCES hardware_profile (id)'); + $this->addSql('ALTER TABLE hardware_profile ADD CONSTRAINT FK_2D9A2460FB84408A FOREIGN KEY (organizational_unit_id) REFERENCES organizational_unit (id)'); + $this->addSql('ALTER TABLE hardware_profile_hardware ADD CONSTRAINT FK_18C7E12CFA495C1 FOREIGN KEY (hardware_profile_id) REFERENCES hardware_profile (id) ON DELETE CASCADE'); + $this->addSql('ALTER TABLE hardware_profile_hardware ADD CONSTRAINT FK_18C7E12C9CC762B FOREIGN KEY (hardware_id) REFERENCES hardware (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE organizational_unit ADD CONSTRAINT FK_749AEB2D727ACA70 FOREIGN KEY (parent_id) REFERENCES organizational_unit (id) ON DELETE SET NULL'); $this->addSql('ALTER TABLE organizational_unit ADD CONSTRAINT FK_749AEB2D9B9A36D0 FOREIGN KEY (network_settings_id) REFERENCES network_settings (id)'); $this->addSql('ALTER TABLE user_organizational_unit ADD CONSTRAINT FK_5E59845FA76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); @@ -45,18 +48,21 @@ final class Version20240606081620 extends AbstractMigration { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE client DROP FOREIGN KEY FK_C7440455FB84408A'); + $this->addSql('ALTER TABLE client DROP FOREIGN KEY FK_C7440455CFA495C1'); + $this->addSql('ALTER TABLE hardware_profile DROP FOREIGN KEY FK_2D9A2460FB84408A'); + $this->addSql('ALTER TABLE hardware_profile_hardware DROP FOREIGN KEY FK_18C7E12CFA495C1'); + $this->addSql('ALTER TABLE hardware_profile_hardware DROP FOREIGN KEY FK_18C7E12C9CC762B'); $this->addSql('ALTER TABLE organizational_unit DROP FOREIGN KEY FK_749AEB2D727ACA70'); $this->addSql('ALTER TABLE organizational_unit DROP FOREIGN KEY FK_749AEB2D9B9A36D0'); $this->addSql('ALTER TABLE user_organizational_unit DROP FOREIGN KEY FK_5E59845FA76ED395'); $this->addSql('ALTER TABLE user_organizational_unit DROP FOREIGN KEY FK_5E59845FFB84408A'); $this->addSql('ALTER TABLE user_group_user DROP FOREIGN KEY FK_3AE4BD51ED93D47'); $this->addSql('ALTER TABLE user_group_user DROP FOREIGN KEY FK_3AE4BD5A76ED395'); - $this->addSql('DROP TABLE aulas'); - $this->addSql('DROP TABLE centros'); $this->addSql('DROP TABLE client'); - $this->addSql('DROP TABLE gruposordenadores'); + $this->addSql('DROP TABLE hardware'); + $this->addSql('DROP TABLE hardware_profile'); + $this->addSql('DROP TABLE hardware_profile_hardware'); $this->addSql('DROP TABLE network_settings'); - $this->addSql('DROP TABLE ordenadores'); $this->addSql('DROP TABLE organizational_unit'); $this->addSql('DROP TABLE refresh_tokens'); $this->addSql('DROP TABLE user'); diff --git a/src/Command/Migration/MigrateClientsCommand.php b/src/Command/Migration/MigrateClientsCommand.php new file mode 100644 index 0000000..9d0560a --- /dev/null +++ b/src/Command/Migration/MigrateClientsCommand.php @@ -0,0 +1,86 @@ +doctrine->getManager('og_1'); + + $clientRepository = $this->entityManager->getRepository(Client::class); + $organizationalUnitRepository = $this->entityManager->getRepository(OrganizationalUnit::class); + + /** Obtener los ordenadores de la base de datos antigua **/ + $rsmClients = new ResultSetMapping(); + $rsmClients->addScalarResult('idordenador', 'idordenador'); + $rsmClients->addScalarResult('nombrgrupoordenador', 'nombrgrupoordenador'); + $rsmClients->addScalarResult('comentarios', 'comentarios'); + $pcsQuery = $oldDatabaseEntityManager->createNativeQuery('SELECT idordenador FROM ordenadores', $rsmClients); + $pcs = $pcsQuery->getResult(); + + /** Ordenadores **/ + foreach ($pcs as $pc){ + $newClient = $clientRepository->findOneBy(['migrationId' => $pc->getIdordenador()]); + if(!$newClient){ + $newClient = new Client(); + $newClient->setMigrationId($pc->getIdordenador()); + $this->entityManager->persist($newClient); + } + $newClient->setName($pc->getNombreordenador()); + $newClient->setSerialNumber($pc->getNumserie()); + $newClient->setNetiface($pc->getNetiface()); + $newClient->setNetdriver($pc->getNetdriver()); + $newClient->setMac($pc->getMac()); + $newClient->setIp($pc->getIp()); + //$client->setStatus(); + //$newClient->setCache($pc->getCache()); + //$newClient->setIdproautoexec($pc->getIdproautoexec()); + //$newClient->setOglive($pc->getOglivedir()); + + // Netboot + + //$migrationId = "" + + // HardwareProfile + //$hardwareProfile = $hardwareProfileRepository->findOneBy(['migrationId' => $pc->getIdperfilhard()]); + //$newClient->setHardwareProfile($hardwareProfile); + + // Menu + //$menu = $menuRepository->findOneBy(['migrationId' => $pc->getIdmenu()]); + //$newClient->setMenu($menu); + + // Repository + //$repository = $repositoryRepository->findOneBy(['migrationId' => $pc->getIdrepositorio()]); + //$newClient->setRepository($repository); + + // OrganizationalUnit + $migrationId = $pc->getGrupoid() == 0 ? $pc->getIdaula() : $pc->getGrupoid(); + $organizationalUnit = $organizationalUnitRepository->findOneBy(['migrationId' => $migrationId]); + $newClient->setOrganizationalUnit($organizationalUnit); + + } + $this->entityManager->flush(); + } + +} \ No newline at end of file diff --git a/src/Command/Migration/MigrateHardwareAndHardwareProfileCommand.php b/src/Command/Migration/MigrateHardwareAndHardwareProfileCommand.php new file mode 100644 index 0000000..96d8c24 --- /dev/null +++ b/src/Command/Migration/MigrateHardwareAndHardwareProfileCommand.php @@ -0,0 +1,40 @@ +doctrine->getManager('og_1'); + + /** Obtener los centros de la base de datos antigua **/ + $rsmCenters = new ResultSetMapping(); + $rsmCenters->addScalarResult('idcentro', 'idcentro'); + $rsmCenters->addScalarResult('nombrecentro', 'nombrecentro'); + $rsmCenters->addScalarResult('comentarios', 'comentarios'); + + + + return Command::SUCCESS; + } +} diff --git a/src/Command/Migration/MigrateOrganizationalUnitCommand.php b/src/Command/Migration/MigrateOrganizationalUnitCommand.php index a595626..3e561d4 100644 --- a/src/Command/Migration/MigrateOrganizationalUnitCommand.php +++ b/src/Command/Migration/MigrateOrganizationalUnitCommand.php @@ -3,13 +3,12 @@ namespace App\Command\Migration; use App\Entity\Client; -use App\Entity\Migration\Aulas; -use App\Entity\Migration\Centros; -use App\Entity\Migration\Gruposordenadores; -use App\Entity\Migration\Ordenadores; use App\Entity\NetworkSettings; use App\Entity\OrganizationalUnit; +use App\Model\OrganizationalUnitTypes; use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\Query\ResultSetMapping; +use Doctrine\Persistence\ManagerRegistry; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; @@ -20,7 +19,7 @@ class MigrateOrganizationalUnitCommand extends Command { public function __construct( private readonly EntityManagerInterface $entityManager, - private readonly EntityManagerInterface $entityManagerSlave + private readonly ManagerRegistry $doctrine ) { parent::__construct(); @@ -28,40 +27,121 @@ class MigrateOrganizationalUnitCommand extends Command protected function execute(InputInterface $input, OutputInterface $output): int { - $centers = $this->entityManagerSlave->getRepository(Centros::class)->findAll(); - $rooms = $this->entityManagerSlave->getRepository(Aulas::class)->findAll(); - $pcGroups = $this->entityManagerSlave->getRepository(Gruposordenadores::class)->findAll(); - $pcs = $this->entityManagerSlave->getRepository(Ordenadores::class)->findAll(); + /** @var EntityManagerInterface $oldDatabaseEntityManager */ + $oldDatabaseEntityManager = $this->doctrine->getManager('og_1'); + + /** Obtener los centros de la base de datos antigua **/ + $rsmCenters = new ResultSetMapping(); + $rsmCenters->addScalarResult('idcentro', 'idcentro'); + $rsmCenters->addScalarResult('nombrecentro', 'nombrecentro'); + $rsmCenters->addScalarResult('comentarios', 'comentarios'); + + $centersQuery = $oldDatabaseEntityManager->createNativeQuery('SELECT idcentro, nombrecentro, comentarios FROM centros', $rsmCenters); + $centers = $centersQuery->getResult(); + + /** Obtener los grupos de aulas de la base de datos antigua **/ + $rsmGroups = new ResultSetMapping(); + $rsmGroups->addScalarResult('idgrupo', 'idgrupo'); + $rsmGroups->addScalarResult('nombregrupo', 'nombregrupo'); + $rsmGroups->addScalarResult('comentarios', 'grupos.comentarios'); + $rsmGroups->addScalarResult('idcentro', 'grupos.idcentro'); + + $groupsQuery = $oldDatabaseEntityManager->createNativeQuery('SELECT idgrupo, nombregrupo, grupos.comentarios, grupos.idcentro FROM grupos INNER JOIN centros ON grupos.idcentro = centros.idcentro', $rsmGroups); + $groups = $groupsQuery->getResult(); + + /** Obtener las aulas de la base de datos antigua **/ + $rsmClassrooms = new ResultSetMapping(); + $rsmClassrooms->addScalarResult('idaula', 'idaula'); + $rsmClassrooms->addScalarResult('nombreaula', 'nombreaula'); + $rsmClassrooms->addScalarResult('comentarios', 'aulas.comentarios'); + $rsmClassrooms->addScalarResult('grupoid', 'aulas.grupoid'); + $rsmClassrooms->addScalarResult('proxy', 'proxy'); + $rsmClassrooms->addScalarResult('dns', 'dns'); + $rsmClassrooms->addScalarResult('netmask', 'netmask'); + $rsmClassrooms->addScalarResult('router', 'router'); + $rsmClassrooms->addScalarResult('ntp', 'ntp'); + $rsmClassrooms->addScalarResult('timep2p', 'timep2p'); + $rsmClassrooms->addScalarResult('modp2p', 'modp2p'); + $rsmClassrooms->addScalarResult('ipmul', 'ipmul'); + $rsmClassrooms->addScalarResult('pormul', 'pormul'); + $rsmClassrooms->addScalarResult('modomul', 'modomul'); + $rsmClassrooms->addScalarResult('velmul', 'velmul'); + $rsmClassrooms->addScalarResult('pizarra', 'pizarra'); + $rsmClassrooms->addScalarResult('cagnon', 'cagnon'); + $rsmClassrooms->addScalarResult('ubicacion', 'ubicacion'); + + $roomsQuery = $oldDatabaseEntityManager->createNativeQuery('SELECT idaula, nombreaula, aulas.comentarios, aulas.grupoid, proxy, dns, netmask, router, ntp, timep2p, modp2p, modomul, ipmul, velmul, pormul, pizarra, cagnon, ubicacion FROM aulas INNER JOIN grupos ON aulas.grupoid = grupos.idgrupo', $rsmClassrooms); + $rooms = $roomsQuery->getResult(); + + /** Obtener los grupos de ordenadores de la base de datos antigua **/ + $rsmClientGroups = new ResultSetMapping(); + $rsmClientGroups->addScalarResult('idgrupo', 'idgrupo'); + $rsmClientGroups->addScalarResult('nombregrupoordenador', 'nombregrupoordenador'); + $rsmClientGroups->addScalarResult('comentarios', 'gruposordenadores.comentarios'); + $rsmClientGroups->addScalarResult('idaula', 'gruposordenadores.idaula'); + $clientGroupsQuery = $oldDatabaseEntityManager->createNativeQuery('SELECT idgrupo, nombregrupoordenador, gruposordenadores.comentarios, gruposordenadores.idaula FROM gruposordenadores INNER JOIN aulas ON gruposordenadores.idaula = aulas.idaula', $rsmClientGroups); + $clientGroups = $clientGroupsQuery->getResult(); $organizationalUnitRepository = $this->entityManager->getRepository(OrganizationalUnit::class); - $clientRepository = $this->entityManager->getRepository(Client::class); /** Centros **/ $output->writeln("CENTROS TOTAL: ". count($centers)); foreach ($centers as $center){ $centerOrganizationalUnit = null; - $centerOrganizationalUnit = $organizationalUnitRepository->findOneBy(['migrationId' => $center->getIdcentro()]); + $centerOrganizationalUnit = $organizationalUnitRepository->findOneBy(['migrationId' => $center['idcentro']]); if(!$centerOrganizationalUnit){ $centerOrganizationalUnit = new OrganizationalUnit(); - $centerOrganizationalUnit->setMigrationId($center->getIdcentro()); - $centerOrganizationalUnit->setName($center->getNombrecentro()); - $centerOrganizationalUnit->setComments($center->getComentarios()); + $centerOrganizationalUnit->setMigrationId($center['idcentro']); + $centerOrganizationalUnit->setName($center['nombrecentro']); + $centerOrganizationalUnit->setComments($center['comentarios']); + $centerOrganizationalUnit->setType(OrganizationalUnitTypes::ORGANIZATIONAL_UNIT); $this->entityManager->persist($centerOrganizationalUnit); } } $this->entityManager->flush(); + /** Grupos de aulas **/ + $output->writeln("GRUPOS DE AULAS TOTAL: ". count($groups)); + foreach ($groups as $group){ + $groupPcOrganizationalUnit = null; + $groupPcOrganizationalUnit = $organizationalUnitRepository->findOneBy(['migrationId' => $group['idgrupo']]); + if(!$groupPcOrganizationalUnit){ + $groupPcOrganizationalUnit = new OrganizationalUnit(); + $groupPcOrganizationalUnit->setMigrationId($group['idgrupo']); + $groupPcOrganizationalUnit->setName($group['nombregrupo']); + $groupPcOrganizationalUnit->setComments($group['grupos.comentarios']); + $groupPcOrganizationalUnit->setType(OrganizationalUnitTypes::CLASSROOMS_GROUP); + + $center = $organizationalUnitRepository->findOneBy(['migrationId' => $group['grupos.idcentro']]); + if ($center){ + $groupPcOrganizationalUnit->setParent($center); + } + + $this->entityManager->persist($groupPcOrganizationalUnit); + } + } + $this->entityManager->flush(); + /** Aulas **/ $output->writeln("AULAS TOTAL: ". count($rooms)); foreach ($rooms as $room){ $roomOrganizationalUnit = null; - $roomOrganizationalUnit = $organizationalUnitRepository->findOneBy(['migrationId' => $room->getIdaula()]); + $roomOrganizationalUnit = $organizationalUnitRepository->findOneBy(['migrationId' => $room['idaula']]); if(!$roomOrganizationalUnit){ $roomOrganizationalUnit = new OrganizationalUnit(); - $roomOrganizationalUnit->setMigrationId($room->getIdaula()); - $roomOrganizationalUnit->setName($room->getNombreaula()); - $roomOrganizationalUnitParent = $organizationalUnitRepository->findOneBy(['migrationId' => $room->getIdcentro()]); - $roomOrganizationalUnit->setParent($roomOrganizationalUnitParent); + $roomOrganizationalUnit->setMigrationId($room['idaula']); + $roomOrganizationalUnit->setName($room['nombreaula']); + $roomOrganizationalUnit->setComments($room['aulas.comentarios']); + $roomOrganizationalUnit->setBoard($room['pizarra']); + $roomOrganizationalUnit->setProjector($room['cagnon']); + $roomOrganizationalUnit->setLocation($room['ubicacion']); + $roomOrganizationalUnit->setType(OrganizationalUnitTypes::CLASSROOM); + + $group = $organizationalUnitRepository->findOneBy(['migrationId' => $room['aulas.grupoid']]); + if ($group){ + $roomOrganizationalUnit->setParent($group); + } + $this->entityManager->persist($roomOrganizationalUnit); } @@ -71,82 +151,44 @@ class MigrateOrganizationalUnitCommand extends Command $roomOrganizationalUnit->setNetworkSettings($networkSettings); $this->entityManager->persist($networkSettings); } - $networkSettings->setProxy($room->getProxy()); - $networkSettings->setDns($room->getDns()); - $networkSettings->setNetmask($room->getNetmask()); - $networkSettings->setRouter($room->getRouter()); - $networkSettings->setNtp($room->getNtp()); - $networkSettings->setP2pTime($room->getTimep2p()); - $networkSettings->setP2pMode($room->getModp2p()); - $networkSettings->setMcastIp($room->getIpmul()); - $networkSettings->setMcastSpeed($room->getVelmul()); - $networkSettings->setMcastPort($room->getPormul()); - $networkSettings->setMcastMode($room->getModomul()); + $networkSettings->setProxy($room['proxy']); + $networkSettings->setDns($room['dns']); + $networkSettings->setNetmask($room['netmask']); + $networkSettings->setRouter($room['router']); + $networkSettings->setNtp($room['ntp']); + $networkSettings->setP2pTime($room['timep2p']); + $networkSettings->setP2pMode($room['modp2p']); + $networkSettings->setMcastIp($room['ipmul']); + $networkSettings->setMcastSpeed($room['velmul']); + $networkSettings->setMcastPort($room['pormul']); + $networkSettings->setMcastMode($room['modomul']); } $this->entityManager->flush(); /** Grupo Ordenador **/ $output->writeln("GRUPOS ORDENADORES ". count($rooms)); - foreach ($pcGroups as $group){ + foreach ($clientGroups as $clientGroup){ + var_dump($clientGroup ); $groupPcOrganizationalUnit = null; - $migrateParentId = ($group->getGrupoid() == 0) ? $group->getIdaula() : $group->getGrupoid(); - $groupPcOrganizationalUnit = $organizationalUnitRepository->findOneBy(['migrationId' => $group->getIdgrupo()]); + $groupPcOrganizationalUnit = $organizationalUnitRepository->findOneBy(['migrationId' => $clientGroup['idgrupo']]); if(!$groupPcOrganizationalUnit){ $groupPcOrganizationalUnit = new OrganizationalUnit(); - $groupPcOrganizationalUnit->setMigrationId($group->getIdgrupo()); - $groupPcOrganizationalUnit->setName($group->getNombregrupoordenador()); - $groupPcOrganizationalUnit->setComments($group->getComentarios()); - $groupPcOrganizationalUnitParent = $organizationalUnitRepository->findOneBy(['migrationId' => $migrateParentId]); - $groupPcOrganizationalUnit->setParent($groupPcOrganizationalUnitParent); + $groupPcOrganizationalUnit->setMigrationId($clientGroup['idgrupo']); + $groupPcOrganizationalUnit->setName($clientGroup['nombregrupoordenador']); + $groupPcOrganizationalUnit->setComments($clientGroup['gruposordenadores.comentarios']); + $groupPcOrganizationalUnit->setType(OrganizationalUnitTypes::CLIENTS_GROUP); + + $room = $organizationalUnitRepository->findOneBy(['migrationId' => $clientGroup['gruposordenadores.idaula']]); + if ($room){ + $groupPcOrganizationalUnit->setParent($room); + } + $this->entityManager->persist($groupPcOrganizationalUnit); } } $this->entityManager->flush(); - /** Ordenadores **/ - foreach ($pcs as $pc){ - $newClient = $clientRepository->findOneBy(['migrationId' => $pc->getIdordenador()]); - if(!$newClient){ - $newClient = new Client(); - $newClient->setMigrationId($pc->getIdordenador()); - $this->entityManager->persist($newClient); - } - $newClient->setName($pc->getNombreordenador()); - $newClient->setSerialNumber($pc->getNumserie()); - $newClient->setNetiface($pc->getNetiface()); - $newClient->setNetdriver($pc->getNetdriver()); - $newClient->setMac($pc->getMac()); - $newClient->setIp($pc->getIp()); - //$client->setStatus(); - //$newClient->setCache($pc->getCache()); - //$newClient->setIdproautoexec($pc->getIdproautoexec()); - //$newClient->setOglive($pc->getOglivedir()); - - // Netboot - - //$migrationId = "" - - // HardwareProfile - //$hardwareProfile = $hardwareProfileRepository->findOneBy(['migrationId' => $pc->getIdperfilhard()]); - //$newClient->setHardwareProfile($hardwareProfile); - - // Menu - //$menu = $menuRepository->findOneBy(['migrationId' => $pc->getIdmenu()]); - //$newClient->setMenu($menu); - - // Repository - //$repository = $repositoryRepository->findOneBy(['migrationId' => $pc->getIdrepositorio()]); - //$newClient->setRepository($repository); - - // OrganizationalUnit - $migrationId = $pc->getGrupoid() == 0 ? $pc->getIdaula() : $pc->getGrupoid(); - $organizationalUnit = $organizationalUnitRepository->findOneBy(['migrationId' => $migrationId]); - $newClient->setOrganizationalUnit($organizationalUnit); - - } - $this->entityManager->flush(); - return 1; } } \ No newline at end of file diff --git a/src/DataFixtures/AppFixtures.php b/src/DataFixtures/AppFixtures.php index 76fb475..358cac9 100644 --- a/src/DataFixtures/AppFixtures.php +++ b/src/DataFixtures/AppFixtures.php @@ -2,17 +2,14 @@ namespace App\DataFixtures; -use App\Entity\OrganizationalUnit; -use App\Factory\OrganizationalUnitFactory; use App\Factory\UserFactory; -use App\Model\OrganizationalUnitTypes; use App\Model\UserGroupPermissions; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; class AppFixtures extends Fixture { - CONST ADMIN_USER = 'ogadmin'; + CONST string ADMIN_USER = 'ogadmin'; /** * @throws \Exception @@ -20,18 +17,6 @@ class AppFixtures extends Fixture public function load(ObjectManager $manager): void { UserFactory::createOne(['username' => self::ADMIN_USER, 'roles'=> [UserGroupPermissions::ROLE_SUPER_ADMIN]]); - $rootUnit = OrganizationalUnitFactory::createOne(['name' => 'Centro de Computación', 'parent' => null, 'type' => OrganizationalUnitTypes::ORGANIZATIONAL_UNIT]); - $roomUnit = OrganizationalUnitFactory::createOne([ - 'name' => 'Aula 1', - 'parent' => $rootUnit, - 'type' => OrganizationalUnitTypes::CLASSROOMS_GROUP - ]); - - OrganizationalUnitFactory::createOne([ - 'name' => 'Aula 2', - 'parent' => $roomUnit, - 'type' => OrganizationalUnitTypes::CLASSROOM - ]); } } diff --git a/src/Dto/Output/ClientOutput.php b/src/Dto/Output/ClientOutput.php index 64f064b..5366342 100644 --- a/src/Dto/Output/ClientOutput.php +++ b/src/Dto/Output/ClientOutput.php @@ -4,7 +4,6 @@ namespace App\Dto\Output; use ApiPlatform\Metadata\Get; use App\Entity\Client; -use App\Entity\OrganizationalUnit; use Symfony\Component\Serializer\Annotation\Groups; #[Get(shortName: 'Client')] diff --git a/src/Entity/Migration/Aulas.php b/src/Entity/Migration/Aulas.php deleted file mode 100644 index d4179e3..0000000 --- a/src/Entity/Migration/Aulas.php +++ /dev/null @@ -1,753 +0,0 @@ -nombreaula = $nombreaula; - - return $this; - } - - /** - * Get nombreaula. - * - * @return string - */ - public function getNombreaula() - { - return $this->nombreaula; - } - - /** - * Set idcentro. - * - * @param int $idcentro - * - * @return Aulas - */ - public function setIdcentro($idcentro) - { - $this->idcentro = $idcentro; - - return $this; - } - - /** - * Get idcentro. - * - * @return int - */ - public function getIdcentro() - { - return $this->idcentro; - } - - /** - * Set urlfoto. - * - * @param string|null $urlfoto - * - * @return Aulas - */ - public function setUrlfoto($urlfoto = null) - { - $this->urlfoto = $urlfoto; - - return $this; - } - - /** - * Get urlfoto. - * - * @return string|null - */ - public function getUrlfoto() - { - return $this->urlfoto; - } - - /** - * Set cagnon. - * - * @param bool|null $cagnon - * - * @return Aulas - */ - public function setCagnon($cagnon = null) - { - $this->cagnon = $cagnon; - - return $this; - } - - /** - * Get cagnon. - * - * @return bool|null - */ - public function getCagnon() - { - return $this->cagnon; - } - - /** - * Set pizarra. - * - * @param bool|null $pizarra - * - * @return Aulas - */ - public function setPizarra($pizarra = null) - { - $this->pizarra = $pizarra; - - return $this; - } - - /** - * Get pizarra. - * - * @return bool|null - */ - public function getPizarra() - { - return $this->pizarra; - } - - /** - * Set grupoid. - * - * @param int|null $grupoid - * - * @return Aulas - */ - public function setGrupoid($grupoid = null) - { - $this->grupoid = $grupoid; - - return $this; - } - - /** - * Get grupoid. - * - * @return int|null - */ - public function getGrupoid() - { - return $this->grupoid; - } - - /** - * Set ubicacion. - * - * @param string|null $ubicacion - * - * @return Aulas - */ - public function setUbicacion($ubicacion = null) - { - $this->ubicacion = $ubicacion; - - return $this; - } - - /** - * Get ubicacion. - * - * @return string|null - */ - public function getUbicacion() - { - return $this->ubicacion; - } - - /** - * Set comentarios. - * - * @param string|null $comentarios - * - * @return Aulas - */ - public function setComentarios($comentarios = null) - { - $this->comentarios = $comentarios; - - return $this; - } - - /** - * Get comentarios. - * - * @return string|null - */ - public function getComentarios() - { - return $this->comentarios; - } - - /** - * Set puestos. - * - * @param int|null $puestos - * - * @return Aulas - */ - public function setPuestos($puestos = null) - { - $this->puestos = $puestos; - - return $this; - } - - /** - * Get puestos. - * - * @return int|null - */ - public function getPuestos() - { - return $this->puestos; - } - - /** - * Set horaresevini. - * - * @param bool|null $horaresevini - * - * @return Aulas - */ - public function setHoraresevini($horaresevini = null) - { - $this->horaresevini = $horaresevini; - - return $this; - } - - /** - * Get horaresevini. - * - * @return bool|null - */ - public function getHoraresevini() - { - return $this->horaresevini; - } - - /** - * Set horaresevfin. - * - * @param bool|null $horaresevfin - * - * @return Aulas - */ - public function setHoraresevfin($horaresevfin = null) - { - $this->horaresevfin = $horaresevfin; - - return $this; - } - - /** - * Get horaresevfin. - * - * @return bool|null - */ - public function getHoraresevfin() - { - return $this->horaresevfin; - } - - /** - * Set modomul. - * - * @param bool $modomul - * - * @return Aulas - */ - public function setModomul($modomul) - { - $this->modomul = $modomul; - - return $this; - } - - /** - * Get modomul. - * - * @return bool - */ - public function getModomul() - { - return $this->modomul; - } - - /** - * Set ipmul. - * - * @param string $ipmul - * - * @return Aulas - */ - public function setIpmul($ipmul) - { - $this->ipmul = $ipmul; - - return $this; - } - - /** - * Get ipmul. - * - * @return string - */ - public function getIpmul() - { - return $this->ipmul; - } - - /** - * Set pormul. - * - * @param int $pormul - * - * @return Aulas - */ - public function setPormul($pormul) - { - $this->pormul = $pormul; - - return $this; - } - - /** - * Get pormul. - * - * @return int - */ - public function getPormul() - { - return $this->pormul; - } - - /** - * Set velmul. - * - * @param int $velmul - * - * @return Aulas - */ - public function setVelmul($velmul) - { - $this->velmul = $velmul; - - return $this; - } - - /** - * Get velmul. - * - * @return int - */ - public function getVelmul() - { - return $this->velmul; - } - - /** - * Set router. - * - * @param string|null $router - * - * @return Aulas - */ - public function setRouter($router = null) - { - $this->router = $router; - - return $this; - } - - /** - * Get router. - * - * @return string|null - */ - public function getRouter() - { - return $this->router; - } - - /** - * Set netmask. - * - * @param string|null $netmask - * - * @return Aulas - */ - public function setNetmask($netmask = null) - { - $this->netmask = $netmask; - - return $this; - } - - /** - * Get netmask. - * - * @return string|null - */ - public function getNetmask() - { - return $this->netmask; - } - - /** - * Set dns. - * - * @param string|null $dns - * - * @return Aulas - */ - public function setDns($dns = null) - { - $this->dns = $dns; - - return $this; - } - - /** - * Get dns. - * - * @return string|null - */ - public function getDns() - { - return $this->dns; - } - - /** - * Set proxy. - * - * @param string|null $proxy - * - * @return Aulas - */ - public function setProxy($proxy = null) - { - $this->proxy = $proxy; - - return $this; - } - - /** - * Get proxy. - * - * @return string|null - */ - public function getProxy() - { - return $this->proxy; - } - - /** - * Set ntp. - * - * @param string|null $ntp - * - * @return Aulas - */ - public function setNtp($ntp = null) - { - $this->ntp = $ntp; - - return $this; - } - - /** - * Get ntp. - * - * @return string|null - */ - public function getNtp() - { - return $this->ntp; - } - - /** - * Set modp2p. - * - * @param string|null $modp2p - * - * @return Aulas - */ - public function setModp2p($modp2p = null) - { - $this->modp2p = $modp2p; - - return $this; - } - - /** - * Get modp2p. - * - * @return string|null - */ - public function getModp2p() - { - return $this->modp2p; - } - - /** - * Set timep2p. - * - * @param int $timep2p - * - * @return Aulas - */ - public function setTimep2p($timep2p) - { - $this->timep2p = $timep2p; - - return $this; - } - - /** - * Get timep2p. - * - * @return int - */ - public function getTimep2p() - { - return $this->timep2p; - } - - /** - * Set validacion. - * - * @param bool|null $validacion - * - * @return Aulas - */ - public function setValidacion($validacion = null) - { - $this->validacion = $validacion; - - return $this; - } - - /** - * Get validacion. - * - * @return bool|null - */ - public function getValidacion() - { - return $this->validacion; - } - - /** - * Set paginalogin. - * - * @param string|null $paginalogin - * - * @return Aulas - */ - public function setPaginalogin($paginalogin = null) - { - $this->paginalogin = $paginalogin; - - return $this; - } - - /** - * Get paginalogin. - * - * @return string|null - */ - public function getPaginalogin() - { - return $this->paginalogin; - } - - /** - * Set paginavalidacion. - * - * @param string|null $paginavalidacion - * - * @return Aulas - */ - public function setPaginavalidacion($paginavalidacion = null) - { - $this->paginavalidacion = $paginavalidacion; - - return $this; - } - - /** - * Get paginavalidacion. - * - * @return string|null - */ - public function getPaginavalidacion() - { - return $this->paginavalidacion; - } - - /** - * Set inremotepc. - * - * @param bool|null $inremotepc - * - * @return Aulas - */ - public function setInremotepc($inremotepc = null) - { - $this->inremotepc = $inremotepc; - - return $this; - } - - /** - * Get inremotepc. - * - * @return bool|null - */ - public function getInremotepc() - { - return $this->inremotepc; - } - - /** - * Set oglivedir. - * - * @param string $oglivedir - * - * @return Aulas - */ - public function setOglivedir($oglivedir) - { - $this->oglivedir = $oglivedir; - - return $this; - } - - /** - * Get oglivedir. - * - * @return string - */ - public function getOglivedir() - { - return $this->oglivedir; - } - - /** - * Get idaula. - * - * @return int - */ - public function getIdaula() - { - return $this->idaula; - } -} diff --git a/src/Entity/Migration/Centros.php b/src/Entity/Migration/Centros.php deleted file mode 100644 index 1978a02..0000000 --- a/src/Entity/Migration/Centros.php +++ /dev/null @@ -1,133 +0,0 @@ -nombrecentro = $nombrecentro; - - return $this; - } - - /** - * Get nombrecentro. - * - * @return string - */ - public function getNombrecentro() - { - return $this->nombrecentro; - } - - /** - * Set identidad. - * - * @param int|null $identidad - * - * @return Centros - */ - public function setIdentidad($identidad = null) - { - $this->identidad = $identidad; - - return $this; - } - - /** - * Get identidad. - * - * @return int|null - */ - public function getIdentidad() - { - return $this->identidad; - } - - /** - * Set comentarios. - * - * @param string|null $comentarios - * - * @return Centros - */ - public function setComentarios($comentarios = null) - { - $this->comentarios = $comentarios; - - return $this; - } - - /** - * Get comentarios. - * - * @return string|null - */ - public function getComentarios() - { - return $this->comentarios; - } - - /** - * Set directorio. - * - * @param string|null $directorio - * - * @return Centros - */ - public function setDirectorio($directorio = null) - { - $this->directorio = $directorio; - - return $this; - } - - /** - * Get directorio. - * - * @return string|null - */ - public function getDirectorio() - { - return $this->directorio; - } - - /** - * Get idcentro. - * - * @return int - */ - public function getIdcentro() - { - return $this->idcentro; - } -} diff --git a/src/Entity/Migration/Gruposordenadores.php b/src/Entity/Migration/Gruposordenadores.php deleted file mode 100644 index d2a27b4..0000000 --- a/src/Entity/Migration/Gruposordenadores.php +++ /dev/null @@ -1,133 +0,0 @@ -nombregrupoordenador = $nombregrupoordenador; - - return $this; - } - - /** - * Get nombregrupoordenador. - * - * @return string - */ - public function getNombregrupoordenador() - { - return $this->nombregrupoordenador; - } - - /** - * Set idaula. - * - * @param int $idaula - * - * @return Gruposordenadores - */ - public function setIdaula($idaula) - { - $this->idaula = $idaula; - - return $this; - } - - /** - * Get idaula. - * - * @return int - */ - public function getIdaula() - { - return $this->idaula; - } - - /** - * Set grupoid. - * - * @param int|null $grupoid - * - * @return Gruposordenadores - */ - public function setGrupoid($grupoid = null) - { - $this->grupoid = $grupoid; - - return $this; - } - - /** - * Get grupoid. - * - * @return int|null - */ - public function getGrupoid() - { - return $this->grupoid; - } - - /** - * Set comentarios. - * - * @param string|null $comentarios - * - * @return Gruposordenadores - */ - public function setComentarios($comentarios = null) - { - $this->comentarios = $comentarios; - - return $this; - } - - /** - * Get comentarios. - * - * @return string|null - */ - public function getComentarios() - { - return $this->comentarios; - } - - /** - * Get idgrupo. - * - * @return int - */ - public function getIdgrupo() - { - return $this->idgrupo; - } -} diff --git a/src/Entity/Migration/Ordenadores.php b/src/Entity/Migration/Ordenadores.php deleted file mode 100644 index 351defe..0000000 --- a/src/Entity/Migration/Ordenadores.php +++ /dev/null @@ -1,663 +0,0 @@ -nombreordenador = $nombreordenador; - - return $this; - } - - /** - * Get nombreordenador. - * - * @return string|null - */ - public function getNombreordenador() - { - return $this->nombreordenador; - } - - /** - * Set numserie. - * - * @param string|null $numserie - * - * @return Ordenadores - */ - public function setNumserie($numserie = null) - { - $this->numserie = $numserie; - - return $this; - } - - /** - * Get numserie. - * - * @return string|null - */ - public function getNumserie() - { - return $this->numserie; - } - - /** - * Set ip. - * - * @param string $ip - * - * @return Ordenadores - */ - public function setIp($ip) - { - $this->ip = $ip; - - return $this; - } - - /** - * Get ip. - * - * @return string - */ - public function getIp() - { - return $this->ip; - } - - /** - * Set mac. - * - * @param string|null $mac - * - * @return Ordenadores - */ - public function setMac($mac = null) - { - $this->mac = $mac; - - return $this; - } - - /** - * Get mac. - * - * @return string|null - */ - public function getMac() - { - return $this->mac; - } - - /** - * Set idaula. - * - * @param int|null $idaula - * - * @return Ordenadores - */ - public function setIdaula($idaula = null) - { - $this->idaula = $idaula; - - return $this; - } - - /** - * Get idaula. - * - * @return int|null - */ - public function getIdaula() - { - return $this->idaula; - } - - /** - * Set idperfilhard. - * - * @param int|null $idperfilhard - * - * @return Ordenadores - */ - public function setIdperfilhard($idperfilhard = null) - { - $this->idperfilhard = $idperfilhard; - - return $this; - } - - /** - * Get idperfilhard. - * - * @return int|null - */ - public function getIdperfilhard() - { - return $this->idperfilhard; - } - - /** - * Set idrepositorio. - * - * @param int|null $idrepositorio - * - * @return Ordenadores - */ - public function setIdrepositorio($idrepositorio = null) - { - $this->idrepositorio = $idrepositorio; - - return $this; - } - - /** - * Get idrepositorio. - * - * @return int|null - */ - public function getIdrepositorio() - { - return $this->idrepositorio; - } - - /** - * Set grupoid. - * - * @param int|null $grupoid - * - * @return Ordenadores - */ - public function setGrupoid($grupoid = null) - { - $this->grupoid = $grupoid; - - return $this; - } - - /** - * Get grupoid. - * - * @return int|null - */ - public function getGrupoid() - { - return $this->grupoid; - } - - /** - * Set idmenu. - * - * @param int|null $idmenu - * - * @return Ordenadores - */ - public function setIdmenu($idmenu = null) - { - $this->idmenu = $idmenu; - - return $this; - } - - /** - * Get idmenu. - * - * @return int|null - */ - public function getIdmenu() - { - return $this->idmenu; - } - - /** - * Set cache. - * - * @param int|null $cache - * - * @return Ordenadores - */ - public function setCache($cache = null) - { - $this->cache = $cache; - - return $this; - } - - /** - * Get cache. - * - * @return int|null - */ - public function getCache() - { - return $this->cache; - } - - /** - * Set router. - * - * @param string $router - * - * @return Ordenadores - */ - public function setRouter($router) - { - $this->router = $router; - - return $this; - } - - /** - * Get router. - * - * @return string - */ - public function getRouter() - { - return $this->router; - } - - /** - * Set mascara. - * - * @param string $mascara - * - * @return Ordenadores - */ - public function setMascara($mascara) - { - $this->mascara = $mascara; - - return $this; - } - - /** - * Get mascara. - * - * @return string - */ - public function getMascara() - { - return $this->mascara; - } - - /** - * Set idproautoexec. - * - * @param int $idproautoexec - * - * @return Ordenadores - */ - public function setIdproautoexec($idproautoexec) - { - $this->idproautoexec = $idproautoexec; - - return $this; - } - - /** - * Get idproautoexec. - * - * @return int - */ - public function getIdproautoexec() - { - return $this->idproautoexec; - } - - /** - * Set arranque. - * - * @param string $arranque - * - * @return Ordenadores - */ - public function setArranque($arranque) - { - $this->arranque = $arranque; - - return $this; - } - - /** - * Get arranque. - * - * @return string - */ - public function getArranque() - { - return $this->arranque; - } - - /** - * Set netiface. - * - * @param string|null $netiface - * - * @return Ordenadores - */ - public function setNetiface($netiface = null) - { - $this->netiface = $netiface; - - return $this; - } - - /** - * Get netiface. - * - * @return string|null - */ - public function getNetiface() - { - return $this->netiface; - } - - /** - * Set netdriver. - * - * @param string $netdriver - * - * @return Ordenadores - */ - public function setNetdriver($netdriver) - { - $this->netdriver = $netdriver; - - return $this; - } - - /** - * Get netdriver. - * - * @return string - */ - public function getNetdriver() - { - return $this->netdriver; - } - - /** - * Set fotoord. - * - * @param string $fotoord - * - * @return Ordenadores - */ - public function setFotoord($fotoord) - { - $this->fotoord = $fotoord; - - return $this; - } - - /** - * Get fotoord. - * - * @return string - */ - public function getFotoord() - { - return $this->fotoord; - } - - /** - * Set validacion. - * - * @param bool|null $validacion - * - * @return Ordenadores - */ - public function setValidacion($validacion = null) - { - $this->validacion = $validacion; - - return $this; - } - - /** - * Get validacion. - * - * @return bool|null - */ - public function getValidacion() - { - return $this->validacion; - } - - /** - * Set paginalogin. - * - * @param string|null $paginalogin - * - * @return Ordenadores - */ - public function setPaginalogin($paginalogin = null) - { - $this->paginalogin = $paginalogin; - - return $this; - } - - /** - * Get paginalogin. - * - * @return string|null - */ - public function getPaginalogin() - { - return $this->paginalogin; - } - - /** - * Set paginavalidacion. - * - * @param string|null $paginavalidacion - * - * @return Ordenadores - */ - public function setPaginavalidacion($paginavalidacion = null) - { - $this->paginavalidacion = $paginavalidacion; - - return $this; - } - - /** - * Get paginavalidacion. - * - * @return string|null - */ - public function getPaginavalidacion() - { - return $this->paginavalidacion; - } - - /** - * Set agentkey. - * - * @param string|null $agentkey - * - * @return Ordenadores - */ - public function setAgentkey($agentkey = null) - { - $this->agentkey = $agentkey; - - return $this; - } - - /** - * Get agentkey. - * - * @return string|null - */ - public function getAgentkey() - { - return $this->agentkey; - } - - /** - * Set oglivedir. - * - * @param string $oglivedir - * - * @return Ordenadores - */ - public function setOglivedir($oglivedir) - { - $this->oglivedir = $oglivedir; - - return $this; - } - - /** - * Get oglivedir. - * - * @return string - */ - public function getOglivedir() - { - return $this->oglivedir; - } - - /** - * Get idordenador. - * - * @return int - */ - public function getIdordenador() - { - return $this->idordenador; - } -} diff --git a/src/Factory/UserFactory.php b/src/Factory/UserFactory.php index d626634..01cca77 100644 --- a/src/Factory/UserFactory.php +++ b/src/Factory/UserFactory.php @@ -14,7 +14,7 @@ use Zenstruck\Foundry\RepositoryProxy; */ final class UserFactory extends ModelFactory { - CONST PLAIN_PASSWORD = '12345678'; + CONST string PLAIN_PASSWORD = '12345678'; public function __construct() { diff --git a/src/Repository/.gitignore b/src/Repository/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/symfony.lock b/symfony.lock index 8640694..d9f1015 100644 --- a/symfony.lock +++ b/symfony.lock @@ -14,24 +14,21 @@ ] }, "dama/doctrine-test-bundle": { - "version": "8.1", + "version": "8.2", "recipe": { "repo": "github.com/symfony/recipes-contrib", "branch": "main", "version": "7.2", "ref": "896306d79d4ee143af9eadf9b09fd34a8c391b70" - }, - "files": [ - "config/packages/dama_doctrine_test_bundle.yaml" - ] + } }, "doctrine/doctrine-bundle": { "version": "2.12", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", - "version": "2.12", - "ref": "7b1b0b637b337f6beb895589948cd119da705524" + "version": "2.10", + "ref": "c170ded8fc587d6bd670550c43dafcf093762245" }, "files": [ "config/packages/doctrine.yaml", @@ -71,12 +68,7 @@ "branch": "main", "version": "1.0", "ref": "2390b4ed5c195e0b3f6dea45221f3b7c0af523a0" - }, - "files": [ - "config/packages/gesdinet_jwt_refresh_token.yaml", - "config/routes/gesdinet_jwt_refresh_token.yaml", - "src/Entity/RefreshToken.php" - ] + } }, "lexik/jwt-authentication-bundle": { "version": "3.0", @@ -117,28 +109,22 @@ ] }, "ramsey/uuid-doctrine": { - "version": "2.0", + "version": "2.1", "recipe": { "repo": "github.com/symfony/recipes-contrib", "branch": "main", "version": "1.3", "ref": "471aed0fbf5620b8d7f92b7a5ebbbf6c0945c27a" - }, - "files": [ - "config/packages/ramsey_uuid_doctrine.yaml" - ] + } }, "stof/doctrine-extensions-bundle": { - "version": "1.10", + "version": "1.11", "recipe": { "repo": "github.com/symfony/recipes-contrib", "branch": "main", "version": "1.2", "ref": "e805aba9eff5372e2d149a9ff56566769e22819d" - }, - "files": [ - "config/packages/stof_doctrine_extensions.yaml" - ] + } }, "symfony/console": { "version": "6.4", @@ -184,7 +170,7 @@ ] }, "symfony/maker-bundle": { - "version": "1.59", + "version": "1.60", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", @@ -193,7 +179,7 @@ } }, "symfony/phpunit-bridge": { - "version": "7.0", + "version": "7.1", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", @@ -272,7 +258,7 @@ ] }, "zenstruck/foundry": { - "version": "1.37", + "version": "1.38", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main",