From 7100cc5a8984ce9c99dbcda8b922187c93563a6b Mon Sep 17 00:00:00 2001 From: mmoeller Date: Thu, 2 Feb 2023 13:48:54 +0100 Subject: [PATCH] import hiltes --- .idea/dataSources.xml | 2 +- .idea/deployment.xml | 42 -- composer.lock | 584 ++++++++++++------------- src/Command/HiltesImportCommand.php | 11 +- src/Command/SwPushStockCommand.php | 13 +- src/Entity/Stock.php | 10 +- src/Entity/Warehouse.php | 14 + src/Helper/HiltesImport.php | 62 ++- src/Helper/Shopware.php | 16 +- src/Repository/StockRepository.php | 24 +- src/Repository/WarehouseRepository.php | 4 +- 11 files changed, 418 insertions(+), 364 deletions(-) delete mode 100644 .idea/deployment.xml diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index ba91d1d..130b5c5 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -8,7 +8,7 @@ jdbc:mysql://127.0.0.1:3306 $ProjectFileDir$ - + mariadb true true diff --git a/.idea/deployment.xml b/.idea/deployment.xml deleted file mode 100644 index 0684c6c..0000000 --- a/.idea/deployment.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/composer.lock b/composer.lock index 06856c8..18b225d 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "api-platform/core", - "version": "v2.7.7", + "version": "v2.7.8", "source": { "type": "git", "url": "https://github.com/api-platform/core.git", - "reference": "67dcf62518d0ac14a99ddccb149a5891b9526104" + "reference": "dc11c7322ba47bb722e963e811face7265bae5e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/api-platform/core/zipball/67dcf62518d0ac14a99ddccb149a5891b9526104", - "reference": "67dcf62518d0ac14a99ddccb149a5891b9526104", + "url": "https://api.github.com/repos/api-platform/core/zipball/dc11c7322ba47bb722e963e811face7265bae5e6", + "reference": "dc11c7322ba47bb722e963e811face7265bae5e6", "shasum": "" }, "require": { @@ -165,7 +165,7 @@ ], "support": { "issues": "https://github.com/api-platform/core/issues", - "source": "https://github.com/api-platform/core/tree/v2.7.7" + "source": "https://github.com/api-platform/core/tree/v2.7.8" }, "funding": [ { @@ -173,7 +173,7 @@ "type": "tidelift" } ], - "time": "2023-01-23T15:18:02+00:00" + "time": "2023-01-27T09:28:22+00:00" }, { "name": "doctrine/annotations", @@ -1560,16 +1560,16 @@ }, { "name": "friendsofphp/proxy-manager-lts", - "version": "v1.0.13", + "version": "v1.0.14", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/proxy-manager-lts.git", - "reference": "88354616f4cf4f6620910fd035e282173ba453e8" + "reference": "a527c9d9d5348e012bd24482d83a5cd643bcbc9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/proxy-manager-lts/zipball/88354616f4cf4f6620910fd035e282173ba453e8", - "reference": "88354616f4cf4f6620910fd035e282173ba453e8", + "url": "https://api.github.com/repos/FriendsOfPHP/proxy-manager-lts/zipball/a527c9d9d5348e012bd24482d83a5cd643bcbc9e", + "reference": "a527c9d9d5348e012bd24482d83a5cd643bcbc9e", "shasum": "" }, "require": { @@ -1626,7 +1626,7 @@ ], "support": { "issues": "https://github.com/FriendsOfPHP/proxy-manager-lts/issues", - "source": "https://github.com/FriendsOfPHP/proxy-manager-lts/tree/v1.0.13" + "source": "https://github.com/FriendsOfPHP/proxy-manager-lts/tree/v1.0.14" }, "funding": [ { @@ -1638,7 +1638,7 @@ "type": "tidelift" } ], - "time": "2022-10-17T19:48:16+00:00" + "time": "2023-01-30T10:40:19+00:00" }, { "name": "guzzlehttp/guzzle", @@ -2262,16 +2262,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.15.3", + "version": "1.16.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "61800f71a5526081d1b5633766aa88341f1ade76" + "reference": "57090cfccbfaa639e703c007486d605a6e80f56d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/61800f71a5526081d1b5633766aa88341f1ade76", - "reference": "61800f71a5526081d1b5633766aa88341f1ade76", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/57090cfccbfaa639e703c007486d605a6e80f56d", + "reference": "57090cfccbfaa639e703c007486d605a6e80f56d", "shasum": "" }, "require": { @@ -2301,9 +2301,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.15.3" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.16.0" }, - "time": "2022-12-20T20:56:55+00:00" + "time": "2023-01-29T14:41:23+00:00" }, { "name": "psr/cache", @@ -2848,16 +2848,16 @@ }, { "name": "symfony/asset", - "version": "v6.1.5", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/asset.git", - "reference": "6065b5edc36442cb1ba98dc40f7c7f6b9e154729" + "reference": "e82c6960ddcb07247207e321a1a017abed291a11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/asset/zipball/6065b5edc36442cb1ba98dc40f7c7f6b9e154729", - "reference": "6065b5edc36442cb1ba98dc40f7c7f6b9e154729", + "url": "https://api.github.com/repos/symfony/asset/zipball/e82c6960ddcb07247207e321a1a017abed291a11", + "reference": "e82c6960ddcb07247207e321a1a017abed291a11", "shasum": "" }, "require": { @@ -2900,7 +2900,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.1.5" + "source": "https://github.com/symfony/asset/tree/v6.1.11" }, "funding": [ { @@ -2916,20 +2916,20 @@ "type": "tidelift" } ], - "time": "2022-08-31T08:17:45+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/cache", - "version": "v6.1.10", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "f498a869e414fb1cb20c0a3ece719559c758ac7e" + "reference": "c6a7f2a1c65c30678b82c1171ff99edbeb915be0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/f498a869e414fb1cb20c0a3ece719559c758ac7e", - "reference": "f498a869e414fb1cb20c0a3ece719559c758ac7e", + "url": "https://api.github.com/repos/symfony/cache/zipball/c6a7f2a1c65c30678b82c1171ff99edbeb915be0", + "reference": "c6a7f2a1c65c30678b82c1171ff99edbeb915be0", "shasum": "" }, "require": { @@ -2996,7 +2996,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v6.1.10" + "source": "https://github.com/symfony/cache/tree/v6.1.11" }, "funding": [ { @@ -3012,7 +3012,7 @@ "type": "tidelift" } ], - "time": "2022-12-29T16:28:13+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/cache-contracts", @@ -3095,16 +3095,16 @@ }, { "name": "symfony/config", - "version": "v6.1.3", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "a0645dc585d378b73c01115dd7ab9348f7d40c85" + "reference": "0cad3cb92780af62851f9312114ad4630b8b6e85" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/a0645dc585d378b73c01115dd7ab9348f7d40c85", - "reference": "a0645dc585d378b73c01115dd7ab9348f7d40c85", + "url": "https://api.github.com/repos/symfony/config/zipball/0cad3cb92780af62851f9312114ad4630b8b6e85", + "reference": "0cad3cb92780af62851f9312114ad4630b8b6e85", "shasum": "" }, "require": { @@ -3152,7 +3152,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.1.3" + "source": "https://github.com/symfony/config/tree/v6.1.11" }, "funding": [ { @@ -3168,20 +3168,20 @@ "type": "tidelift" } ], - "time": "2022-07-20T15:00:40+00:00" + "time": "2023-01-09T04:36:47+00:00" }, { "name": "symfony/console", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "b800f23e66bcb96602da4941fe966e50f0fff1f3" + "reference": "bdf195cee00f47ee93eb6f75fb1b18892d507785" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/b800f23e66bcb96602da4941fe966e50f0fff1f3", - "reference": "b800f23e66bcb96602da4941fe966e50f0fff1f3", + "url": "https://api.github.com/repos/symfony/console/zipball/bdf195cee00f47ee93eb6f75fb1b18892d507785", + "reference": "bdf195cee00f47ee93eb6f75fb1b18892d507785", "shasum": "" }, "require": { @@ -3248,7 +3248,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.1.9" + "source": "https://github.com/symfony/console/tree/v6.1.11" }, "funding": [ { @@ -3264,20 +3264,20 @@ "type": "tidelift" } ], - "time": "2022-12-28T14:22:24+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/dependency-injection", - "version": "v6.1.9", + "version": "v6.1.12", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "89db508de3ff096b2a980c7d0a5f0a2091de797b" + "reference": "360c9d0948e1fe675336346d5862e8e55b378d90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/89db508de3ff096b2a980c7d0a5f0a2091de797b", - "reference": "89db508de3ff096b2a980c7d0a5f0a2091de797b", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/360c9d0948e1fe675336346d5862e8e55b378d90", + "reference": "360c9d0948e1fe675336346d5862e8e55b378d90", "shasum": "" }, "require": { @@ -3335,7 +3335,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.1.9" + "source": "https://github.com/symfony/dependency-injection/tree/v6.1.12" }, "funding": [ { @@ -3351,7 +3351,7 @@ "type": "tidelift" } ], - "time": "2022-12-28T14:22:24+00:00" + "time": "2023-01-30T15:43:30+00:00" }, { "name": "symfony/deprecation-contracts", @@ -3422,16 +3422,16 @@ }, { "name": "symfony/doctrine-bridge", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/doctrine-bridge.git", - "reference": "473dd2534342aae85d4d32618d3d274ee711071b" + "reference": "f50159673ec3f4a68b81db4712f4a5bbe47a9442" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/473dd2534342aae85d4d32618d3d274ee711071b", - "reference": "473dd2534342aae85d4d32618d3d274ee711071b", + "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/f50159673ec3f4a68b81db4712f4a5bbe47a9442", + "reference": "f50159673ec3f4a68b81db4712f4a5bbe47a9442", "shasum": "" }, "require": { @@ -3517,7 +3517,7 @@ "description": "Provides integration for Doctrine with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/doctrine-bridge/tree/v6.1.9" + "source": "https://github.com/symfony/doctrine-bridge/tree/v6.1.11" }, "funding": [ { @@ -3533,20 +3533,20 @@ "type": "tidelift" } ], - "time": "2022-12-20T16:40:36+00:00" + "time": "2023-01-10T18:53:01+00:00" }, { "name": "symfony/dotenv", - "version": "v6.1.0", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/dotenv.git", - "reference": "568c11bcedf419e7e61f663912c3547b54de51df" + "reference": "943737d82119212ee366e3c452a3297ad8f2ec0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dotenv/zipball/568c11bcedf419e7e61f663912c3547b54de51df", - "reference": "568c11bcedf419e7e61f663912c3547b54de51df", + "url": "https://api.github.com/repos/symfony/dotenv/zipball/943737d82119212ee366e3c452a3297ad8f2ec0d", + "reference": "943737d82119212ee366e3c452a3297ad8f2ec0d", "shasum": "" }, "require": { @@ -3590,7 +3590,7 @@ "environment" ], "support": { - "source": "https://github.com/symfony/dotenv/tree/v6.1.0" + "source": "https://github.com/symfony/dotenv/tree/v6.1.11" }, "funding": [ { @@ -3606,20 +3606,20 @@ "type": "tidelift" } ], - "time": "2022-04-01T07:15:35+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/error-handler", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "4dc739387858c228fd0a4be88d661be8675dc9ed" + "reference": "2ce6feaafff4e745572468b70c0f269a8a997085" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/4dc739387858c228fd0a4be88d661be8675dc9ed", - "reference": "4dc739387858c228fd0a4be88d661be8675dc9ed", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/2ce6feaafff4e745572468b70c0f269a8a997085", + "reference": "2ce6feaafff4e745572468b70c0f269a8a997085", "shasum": "" }, "require": { @@ -3661,7 +3661,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.1.9" + "source": "https://github.com/symfony/error-handler/tree/v6.1.11" }, "funding": [ { @@ -3677,20 +3677,20 @@ "type": "tidelift" } ], - "time": "2022-12-19T14:31:05+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "ca91778337cd851c33e41e46ae831cfb1e1e36cf" + "reference": "c961e9b08b1e800eb19fccefe2b8f6091b62a472" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ca91778337cd851c33e41e46ae831cfb1e1e36cf", - "reference": "ca91778337cd851c33e41e46ae831cfb1e1e36cf", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/c961e9b08b1e800eb19fccefe2b8f6091b62a472", + "reference": "c961e9b08b1e800eb19fccefe2b8f6091b62a472", "shasum": "" }, "require": { @@ -3744,7 +3744,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.1.9" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.1.11" }, "funding": [ { @@ -3760,7 +3760,7 @@ "type": "tidelift" } ], - "time": "2022-12-14T16:05:20+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -3843,16 +3843,16 @@ }, { "name": "symfony/expression-language", - "version": "v6.1.6", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/expression-language.git", - "reference": "d1538560c075007d3dfd1f8e3a05e43a5ff13fd6" + "reference": "dd8a5ccdb0798c6caf5bd6600ff03d5d7a7e99a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/expression-language/zipball/d1538560c075007d3dfd1f8e3a05e43a5ff13fd6", - "reference": "d1538560c075007d3dfd1f8e3a05e43a5ff13fd6", + "url": "https://api.github.com/repos/symfony/expression-language/zipball/dd8a5ccdb0798c6caf5bd6600ff03d5d7a7e99a8", + "reference": "dd8a5ccdb0798c6caf5bd6600ff03d5d7a7e99a8", "shasum": "" }, "require": { @@ -3886,7 +3886,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.1.6" + "source": "https://github.com/symfony/expression-language/tree/v6.1.11" }, "funding": [ { @@ -3902,20 +3902,20 @@ "type": "tidelift" } ], - "time": "2022-10-07T08:04:03+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/filesystem", - "version": "v6.1.5", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "4d216a2beef096edf040a070117c39ca2abce307" + "reference": "b5218ebd2e8085978ac06103b4e37aaf8ae7eb82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/4d216a2beef096edf040a070117c39ca2abce307", - "reference": "4d216a2beef096edf040a070117c39ca2abce307", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/b5218ebd2e8085978ac06103b4e37aaf8ae7eb82", + "reference": "b5218ebd2e8085978ac06103b4e37aaf8ae7eb82", "shasum": "" }, "require": { @@ -3949,7 +3949,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.1.5" + "source": "https://github.com/symfony/filesystem/tree/v6.1.11" }, "funding": [ { @@ -3965,20 +3965,20 @@ "type": "tidelift" } ], - "time": "2022-09-21T20:29:40+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/finder", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "e854440dd5d9020cf098e59742a68149b3dfdf1e" + "reference": "1efd83623550a69f410f330f4eef027a188a29a7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/e854440dd5d9020cf098e59742a68149b3dfdf1e", - "reference": "e854440dd5d9020cf098e59742a68149b3dfdf1e", + "url": "https://api.github.com/repos/symfony/finder/zipball/1efd83623550a69f410f330f4eef027a188a29a7", + "reference": "1efd83623550a69f410f330f4eef027a188a29a7", "shasum": "" }, "require": { @@ -4013,7 +4013,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.1.9" + "source": "https://github.com/symfony/finder/tree/v6.1.11" }, "funding": [ { @@ -4029,7 +4029,7 @@ "type": "tidelift" } ], - "time": "2022-12-22T17:54:54+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/flex", @@ -4098,16 +4098,16 @@ }, { "name": "symfony/form", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/form.git", - "reference": "96b9b6f672a57ff82ac88fa160313a594c7c7296" + "reference": "b137b4acac416062d50d5f2c6d524ee5185ef2a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/form/zipball/96b9b6f672a57ff82ac88fa160313a594c7c7296", - "reference": "96b9b6f672a57ff82ac88fa160313a594c7c7296", + "url": "https://api.github.com/repos/symfony/form/zipball/b137b4acac416062d50d5f2c6d524ee5185ef2a0", + "reference": "b137b4acac416062d50d5f2c6d524ee5185ef2a0", "shasum": "" }, "require": { @@ -4180,7 +4180,7 @@ "description": "Allows to easily create, process and reuse HTML forms", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/form/tree/v6.1.9" + "source": "https://github.com/symfony/form/tree/v6.1.11" }, "funding": [ { @@ -4196,20 +4196,20 @@ "type": "tidelift" } ], - "time": "2022-12-28T14:22:24+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/framework-bundle", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "e8b7f0905d5baecaa489a3479de1e0fbca5a49d5" + "reference": "58a8a7c1ea054d45f5ee6435ebbfe2606c7e869a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/e8b7f0905d5baecaa489a3479de1e0fbca5a49d5", - "reference": "e8b7f0905d5baecaa489a3479de1e0fbca5a49d5", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/58a8a7c1ea054d45f5ee6435ebbfe2606c7e869a", + "reference": "58a8a7c1ea054d45f5ee6435ebbfe2606c7e869a", "shasum": "" }, "require": { @@ -4331,7 +4331,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.1.9" + "source": "https://github.com/symfony/framework-bundle/tree/v6.1.11" }, "funding": [ { @@ -4347,20 +4347,20 @@ "type": "tidelift" } ], - "time": "2022-12-20T16:40:36+00:00" + "time": "2023-01-11T11:51:43+00:00" }, { "name": "symfony/http-foundation", - "version": "v6.1.9", + "version": "v6.1.12", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "2046d8cf11127121cba8075fda762d76627cfd9c" + "reference": "bd1bcfb0eba14de22c4d086c5023e608f37366ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/2046d8cf11127121cba8075fda762d76627cfd9c", - "reference": "2046d8cf11127121cba8075fda762d76627cfd9c", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/bd1bcfb0eba14de22c4d086c5023e608f37366ed", + "reference": "bd1bcfb0eba14de22c4d086c5023e608f37366ed", "shasum": "" }, "require": { @@ -4406,7 +4406,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.1.9" + "source": "https://github.com/symfony/http-foundation/tree/v6.1.12" }, "funding": [ { @@ -4422,20 +4422,20 @@ "type": "tidelift" } ], - "time": "2022-12-14T16:05:20+00:00" + "time": "2023-01-30T15:43:30+00:00" }, { "name": "symfony/http-kernel", - "version": "v6.1.10", + "version": "v6.1.12", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "8aa5a91d563ef368800bd41758096a6291844de1" + "reference": "7a4a69dee1b0db04bdc12e86d4cd0dbf6daa390c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/8aa5a91d563ef368800bd41758096a6291844de1", - "reference": "8aa5a91d563ef368800bd41758096a6291844de1", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/7a4a69dee1b0db04bdc12e86d4cd0dbf6daa390c", + "reference": "7a4a69dee1b0db04bdc12e86d4cd0dbf6daa390c", "shasum": "" }, "require": { @@ -4516,7 +4516,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.1.10" + "source": "https://github.com/symfony/http-kernel/tree/v6.1.12" }, "funding": [ { @@ -4532,20 +4532,20 @@ "type": "tidelift" } ], - "time": "2022-12-29T19:01:43+00:00" + "time": "2023-02-01T08:26:56+00:00" }, { "name": "symfony/options-resolver", - "version": "v6.1.0", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4" + "reference": "ae355b19e11d9eb1f757fa072a3886429946b6f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a3016f5442e28386ded73c43a32a5b68586dd1c4", - "reference": "a3016f5442e28386ded73c43a32a5b68586dd1c4", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/ae355b19e11d9eb1f757fa072a3886429946b6f6", + "reference": "ae355b19e11d9eb1f757fa072a3886429946b6f6", "shasum": "" }, "require": { @@ -4583,7 +4583,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v6.1.0" + "source": "https://github.com/symfony/options-resolver/tree/v6.1.11" }, "funding": [ { @@ -4599,20 +4599,20 @@ "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/password-hasher", - "version": "v6.1.3", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/password-hasher.git", - "reference": "264894821636b77bb8282db6ec33b8b07b7a0678" + "reference": "49124e581f1ee90c1e19ca64b45f384f1dadd118" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/password-hasher/zipball/264894821636b77bb8282db6ec33b8b07b7a0678", - "reference": "264894821636b77bb8282db6ec33b8b07b7a0678", + "url": "https://api.github.com/repos/symfony/password-hasher/zipball/49124e581f1ee90c1e19ca64b45f384f1dadd118", + "reference": "49124e581f1ee90c1e19ca64b45f384f1dadd118", "shasum": "" }, "require": { @@ -4655,7 +4655,7 @@ "password" ], "support": { - "source": "https://github.com/symfony/password-hasher/tree/v6.1.3" + "source": "https://github.com/symfony/password-hasher/tree/v6.1.11" }, "funding": [ { @@ -4671,7 +4671,7 @@ "type": "tidelift" } ], - "time": "2022-07-20T14:45:06+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/polyfill-intl-grapheme", @@ -5010,16 +5010,16 @@ }, { "name": "symfony/property-access", - "version": "v6.1.7", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "cf034c0d8d25ed285bb8f6c2528ce6fac98563eb" + "reference": "3163b6942be075ae230e6a0b1b2b526cb445e561" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/cf034c0d8d25ed285bb8f6c2528ce6fac98563eb", - "reference": "cf034c0d8d25ed285bb8f6c2528ce6fac98563eb", + "url": "https://api.github.com/repos/symfony/property-access/zipball/3163b6942be075ae230e6a0b1b2b526cb445e561", + "reference": "3163b6942be075ae230e6a0b1b2b526cb445e561", "shasum": "" }, "require": { @@ -5069,7 +5069,7 @@ "reflection" ], "support": { - "source": "https://github.com/symfony/property-access/tree/v6.1.7" + "source": "https://github.com/symfony/property-access/tree/v6.1.11" }, "funding": [ { @@ -5085,20 +5085,20 @@ "type": "tidelift" } ], - "time": "2022-10-28T16:23:08+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/property-info", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "7a3a5bf2c2b0cac638fb2429e0c0e7ac87a21a4a" + "reference": "006d2eaf3e951c00f1410e601e4e9838e0e5ae21" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/7a3a5bf2c2b0cac638fb2429e0c0e7ac87a21a4a", - "reference": "7a3a5bf2c2b0cac638fb2429e0c0e7ac87a21a4a", + "url": "https://api.github.com/repos/symfony/property-info/zipball/006d2eaf3e951c00f1410e601e4e9838e0e5ae21", + "reference": "006d2eaf3e951c00f1410e601e4e9838e0e5ae21", "shasum": "" }, "require": { @@ -5158,7 +5158,7 @@ "validator" ], "support": { - "source": "https://github.com/symfony/property-info/tree/v6.1.9" + "source": "https://github.com/symfony/property-info/tree/v6.1.11" }, "funding": [ { @@ -5174,20 +5174,20 @@ "type": "tidelift" } ], - "time": "2022-12-20T16:40:36+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/proxy-manager-bridge", - "version": "v6.1.0", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/proxy-manager-bridge.git", - "reference": "bcb3e7a28ee373bd64ecd2a2289a64c5860716af" + "reference": "4f30c8ad26087b135da35ea89451a2ae605efc60" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/proxy-manager-bridge/zipball/bcb3e7a28ee373bd64ecd2a2289a64c5860716af", - "reference": "bcb3e7a28ee373bd64ecd2a2289a64c5860716af", + "url": "https://api.github.com/repos/symfony/proxy-manager-bridge/zipball/4f30c8ad26087b135da35ea89451a2ae605efc60", + "reference": "4f30c8ad26087b135da35ea89451a2ae605efc60", "shasum": "" }, "require": { @@ -5224,7 +5224,7 @@ "description": "Provides integration for ProxyManager with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/proxy-manager-bridge/tree/v6.1.0" + "source": "https://github.com/symfony/proxy-manager-bridge/tree/v6.1.11" }, "funding": [ { @@ -5240,20 +5240,20 @@ "type": "tidelift" } ], - "time": "2022-03-02T13:21:45+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/routing", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "96e68e4a1cd81ac63c6302c42e3f9aa8b4defb04" + "reference": "dd8556e52717bd8559fdac8e9090388be1e2eba7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/96e68e4a1cd81ac63c6302c42e3f9aa8b4defb04", - "reference": "96e68e4a1cd81ac63c6302c42e3f9aa8b4defb04", + "url": "https://api.github.com/repos/symfony/routing/zipball/dd8556e52717bd8559fdac8e9090388be1e2eba7", + "reference": "dd8556e52717bd8559fdac8e9090388be1e2eba7", "shasum": "" }, "require": { @@ -5312,7 +5312,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v6.1.9" + "source": "https://github.com/symfony/routing/tree/v6.1.11" }, "funding": [ { @@ -5328,20 +5328,20 @@ "type": "tidelift" } ], - "time": "2022-12-20T16:40:36+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/runtime", - "version": "v6.1.3", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/runtime.git", - "reference": "e5d4d848656cbb1812d5f911b1bdec205c6e2fac" + "reference": "717cb91d66893a27a4607f227e28eb74ff007fde" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/runtime/zipball/e5d4d848656cbb1812d5f911b1bdec205c6e2fac", - "reference": "e5d4d848656cbb1812d5f911b1bdec205c6e2fac", + "url": "https://api.github.com/repos/symfony/runtime/zipball/717cb91d66893a27a4607f227e28eb74ff007fde", + "reference": "717cb91d66893a27a4607f227e28eb74ff007fde", "shasum": "" }, "require": { @@ -5388,7 +5388,7 @@ "description": "Enables decoupling PHP applications from global state", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/runtime/tree/v6.1.3" + "source": "https://github.com/symfony/runtime/tree/v6.1.11" }, "funding": [ { @@ -5404,20 +5404,20 @@ "type": "tidelift" } ], - "time": "2022-06-27T17:24:16+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/security-bundle", - "version": "v6.1.9", + "version": "v6.1.12", "source": { "type": "git", "url": "https://github.com/symfony/security-bundle.git", - "reference": "d95b64cb1d03a26823a322cc030660e64aca3405" + "reference": "5c790f769c0cdfeebc237573b929ce6c121eb657" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-bundle/zipball/d95b64cb1d03a26823a322cc030660e64aca3405", - "reference": "d95b64cb1d03a26823a322cc030660e64aca3405", + "url": "https://api.github.com/repos/symfony/security-bundle/zipball/5c790f769c0cdfeebc237573b929ce6c121eb657", + "reference": "5c790f769c0cdfeebc237573b929ce6c121eb657", "shasum": "" }, "require": { @@ -5432,7 +5432,7 @@ "symfony/password-hasher": "^5.4|^6.0", "symfony/security-core": "^5.4|^6.0", "symfony/security-csrf": "^5.4|^6.0", - "symfony/security-http": "^5.4|^6.0" + "symfony/security-http": "^5.4.20|~6.0.20|~6.1.12|^6.2.6" }, "conflict": { "symfony/browser-kit": "<5.4", @@ -5488,7 +5488,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.1.9" + "source": "https://github.com/symfony/security-bundle/tree/v6.1.12" }, "funding": [ { @@ -5504,20 +5504,20 @@ "type": "tidelift" } ], - "time": "2022-12-20T16:40:36+00:00" + "time": "2023-01-30T15:43:30+00:00" }, { "name": "symfony/security-core", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/security-core.git", - "reference": "9ba27ee0c1f5733a2b9b3baf7c8ef3371c0798a0" + "reference": "a55bf4319a438719e139c8e81c64fc7e009124e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-core/zipball/9ba27ee0c1f5733a2b9b3baf7c8ef3371c0798a0", - "reference": "9ba27ee0c1f5733a2b9b3baf7c8ef3371c0798a0", + "url": "https://api.github.com/repos/symfony/security-core/zipball/a55bf4319a438719e139c8e81c64fc7e009124e3", + "reference": "a55bf4319a438719e139c8e81c64fc7e009124e3", "shasum": "" }, "require": { @@ -5579,7 +5579,7 @@ "description": "Symfony Security Component - Core Library", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/security-core/tree/v6.1.9" + "source": "https://github.com/symfony/security-core/tree/v6.1.11" }, "funding": [ { @@ -5595,20 +5595,20 @@ "type": "tidelift" } ], - "time": "2022-12-09T14:23:03+00:00" + "time": "2023-01-24T13:11:40+00:00" }, { "name": "symfony/security-csrf", - "version": "v6.1.0", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/security-csrf.git", - "reference": "b44d74295a5651298de8c2760ba50bef3b97f34b" + "reference": "4ea5f0af48f303e60109a6955dde49d1923143cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-csrf/zipball/b44d74295a5651298de8c2760ba50bef3b97f34b", - "reference": "b44d74295a5651298de8c2760ba50bef3b97f34b", + "url": "https://api.github.com/repos/symfony/security-csrf/zipball/4ea5f0af48f303e60109a6955dde49d1923143cb", + "reference": "4ea5f0af48f303e60109a6955dde49d1923143cb", "shasum": "" }, "require": { @@ -5650,7 +5650,7 @@ "description": "Symfony Security Component - CSRF Library", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/security-csrf/tree/v6.1.0" + "source": "https://github.com/symfony/security-csrf/tree/v6.1.11" }, "funding": [ { @@ -5666,20 +5666,20 @@ "type": "tidelift" } ], - "time": "2022-05-14T12:53:54+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/security-http", - "version": "v6.1.9", + "version": "v6.1.12", "source": { "type": "git", "url": "https://github.com/symfony/security-http.git", - "reference": "b52cbd096fd3b057e36112411de63ec2859163d7" + "reference": "e671c9748c439492c4a2d07862ee63a9a6fbf5c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-http/zipball/b52cbd096fd3b057e36112411de63ec2859163d7", - "reference": "b52cbd096fd3b057e36112411de63ec2859163d7", + "url": "https://api.github.com/repos/symfony/security-http/zipball/e671c9748c439492c4a2d07862ee63a9a6fbf5c1", + "reference": "e671c9748c439492c4a2d07862ee63a9a6fbf5c1", "shasum": "" }, "require": { @@ -5688,7 +5688,7 @@ "symfony/http-kernel": "^6.1", "symfony/polyfill-mbstring": "~1.0", "symfony/property-access": "^5.4|^6.0", - "symfony/security-core": "^5.4.7|^6.0" + "symfony/security-core": "^5.4.19|~6.0.19|~6.1.11|^6.2.5" }, "conflict": { "symfony/event-dispatcher": "<5.4.9|>=6,<6.0.9", @@ -5733,7 +5733,7 @@ "description": "Symfony Security Component - HTTP Integration", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/security-http/tree/v6.1.9" + "source": "https://github.com/symfony/security-http/tree/v6.1.12" }, "funding": [ { @@ -5749,20 +5749,20 @@ "type": "tidelift" } ], - "time": "2022-11-30T17:17:55+00:00" + "time": "2023-01-30T15:43:30+00:00" }, { "name": "symfony/serializer", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "b9e6cdb07e334514ffabc0be7ce9bf0b1b6cfb4e" + "reference": "5761725c7d007ef8fed3cb425be866a772977ad4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/b9e6cdb07e334514ffabc0be7ce9bf0b1b6cfb4e", - "reference": "b9e6cdb07e334514ffabc0be7ce9bf0b1b6cfb4e", + "url": "https://api.github.com/repos/symfony/serializer/zipball/5761725c7d007ef8fed3cb425be866a772977ad4", + "reference": "5761725c7d007ef8fed3cb425be866a772977ad4", "shasum": "" }, "require": { @@ -5834,7 +5834,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.1.9" + "source": "https://github.com/symfony/serializer/tree/v6.1.11" }, "funding": [ { @@ -5850,7 +5850,7 @@ "type": "tidelift" } ], - "time": "2022-12-20T16:40:36+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/service-contracts", @@ -5939,16 +5939,16 @@ }, { "name": "symfony/stopwatch", - "version": "v6.1.5", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "266636bb8f3fbdccc302491df7b3a1b9a8c238a7" + "reference": "00b6ac156aacffc53487c930e0ab14587a6607f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/266636bb8f3fbdccc302491df7b3a1b9a8c238a7", - "reference": "266636bb8f3fbdccc302491df7b3a1b9a8c238a7", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/00b6ac156aacffc53487c930e0ab14587a6607f6", + "reference": "00b6ac156aacffc53487c930e0ab14587a6607f6", "shasum": "" }, "require": { @@ -5981,7 +5981,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v6.1.5" + "source": "https://github.com/symfony/stopwatch/tree/v6.1.11" }, "funding": [ { @@ -5997,20 +5997,20 @@ "type": "tidelift" } ], - "time": "2022-09-28T16:00:52+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/string", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "e1b613efac6ace3495fcb3e47eb4658422ee5be4" + "reference": "3109748771c79ce86fb389e54f31634e457bc544" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/e1b613efac6ace3495fcb3e47eb4658422ee5be4", - "reference": "e1b613efac6ace3495fcb3e47eb4658422ee5be4", + "url": "https://api.github.com/repos/symfony/string/zipball/3109748771c79ce86fb389e54f31634e457bc544", + "reference": "3109748771c79ce86fb389e54f31634e457bc544", "shasum": "" }, "require": { @@ -6066,7 +6066,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.1.9" + "source": "https://github.com/symfony/string/tree/v6.1.11" }, "funding": [ { @@ -6082,7 +6082,7 @@ "type": "tidelift" } ], - "time": "2022-12-14T16:05:20+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/translation-contracts", @@ -6167,16 +6167,16 @@ }, { "name": "symfony/twig-bridge", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/twig-bridge.git", - "reference": "05ec05a6ffee3e68c7f834bc6c244976ca85020d" + "reference": "33ced92d844427e5bfe652707c04b54625950162" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/05ec05a6ffee3e68c7f834bc6c244976ca85020d", - "reference": "05ec05a6ffee3e68c7f834bc6c244976ca85020d", + "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/33ced92d844427e5bfe652707c04b54625950162", + "reference": "33ced92d844427e5bfe652707c04b54625950162", "shasum": "" }, "require": { @@ -6196,7 +6196,7 @@ }, "require-dev": { "doctrine/annotations": "^1.12|^2", - "egulias/email-validator": "^2.1.10|^3", + "egulias/email-validator": "^2.1.10|^3|^4", "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", "symfony/asset": "^5.4|^6.0", "symfony/console": "^5.4|^6.0", @@ -6269,7 +6269,7 @@ "description": "Provides integration for Twig with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/twig-bridge/tree/v6.1.9" + "source": "https://github.com/symfony/twig-bridge/tree/v6.1.11" }, "funding": [ { @@ -6285,20 +6285,20 @@ "type": "tidelift" } ], - "time": "2022-12-20T16:40:36+00:00" + "time": "2023-01-10T18:53:01+00:00" }, { "name": "symfony/twig-bundle", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/twig-bundle.git", - "reference": "767050f6bf02a9b7566331600d0476c513cd221a" + "reference": "ecfae619319e56475e671ac04049234c34de3e18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/twig-bundle/zipball/767050f6bf02a9b7566331600d0476c513cd221a", - "reference": "767050f6bf02a9b7566331600d0476c513cd221a", + "url": "https://api.github.com/repos/symfony/twig-bundle/zipball/ecfae619319e56475e671ac04049234c34de3e18", + "reference": "ecfae619319e56475e671ac04049234c34de3e18", "shasum": "" }, "require": { @@ -6355,7 +6355,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.1.9" + "source": "https://github.com/symfony/twig-bundle/tree/v6.1.11" }, "funding": [ { @@ -6371,20 +6371,20 @@ "type": "tidelift" } ], - "time": "2022-12-20T16:40:36+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/validator", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "6c63676e7d169fcf48902fd695ad47a7e4c90ed2" + "reference": "04f3521a589d35293d460668c482e6039b1c3c5f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/6c63676e7d169fcf48902fd695ad47a7e4c90ed2", - "reference": "6c63676e7d169fcf48902fd695ad47a7e4c90ed2", + "url": "https://api.github.com/repos/symfony/validator/zipball/04f3521a589d35293d460668c482e6039b1c3c5f", + "reference": "04f3521a589d35293d460668c482e6039b1c3c5f", "shasum": "" }, "require": { @@ -6408,7 +6408,7 @@ }, "require-dev": { "doctrine/annotations": "^1.13|^2", - "egulias/email-validator": "^2.1.10|^3", + "egulias/email-validator": "^2.1.10|^3|^4", "symfony/cache": "^5.4|^6.0", "symfony/config": "^5.4|^6.0", "symfony/console": "^5.4|^6.0", @@ -6463,7 +6463,7 @@ "description": "Provides tools to validate values", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/validator/tree/v6.1.9" + "source": "https://github.com/symfony/validator/tree/v6.1.11" }, "funding": [ { @@ -6479,20 +6479,20 @@ "type": "tidelift" } ], - "time": "2022-12-22T17:54:54+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/var-dumper", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "66ad854f839add1be964c67ad604cf845da67e77" + "reference": "e0aafa734ad7febb86e9848dbde4d6016a3261a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/66ad854f839add1be964c67ad604cf845da67e77", - "reference": "66ad854f839add1be964c67ad604cf845da67e77", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e0aafa734ad7febb86e9848dbde4d6016a3261a3", + "reference": "e0aafa734ad7febb86e9848dbde4d6016a3261a3", "shasum": "" }, "require": { @@ -6551,7 +6551,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.1.9" + "source": "https://github.com/symfony/var-dumper/tree/v6.1.11" }, "funding": [ { @@ -6567,20 +6567,20 @@ "type": "tidelift" } ], - "time": "2022-12-22T17:54:54+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/var-exporter", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "5d3feff96a2bc8d9d0a3085d3f390de12ada8887" + "reference": "d247e6c302964a6f462302e3ab97eb9617c9b583" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/5d3feff96a2bc8d9d0a3085d3f390de12ada8887", - "reference": "5d3feff96a2bc8d9d0a3085d3f390de12ada8887", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/d247e6c302964a6f462302e3ab97eb9617c9b583", + "reference": "d247e6c302964a6f462302e3ab97eb9617c9b583", "shasum": "" }, "require": { @@ -6623,7 +6623,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v6.1.9" + "source": "https://github.com/symfony/var-exporter/tree/v6.1.11" }, "funding": [ { @@ -6639,20 +6639,20 @@ "type": "tidelift" } ], - "time": "2022-12-22T17:54:54+00:00" + "time": "2023-01-13T08:35:02+00:00" }, { "name": "symfony/web-link", - "version": "v6.1.0", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/web-link.git", - "reference": "d6ef738f97b60d859652d92f10bf8645bca28cd6" + "reference": "56c2edf81a4347f86ba148d96883ef4f5980a1ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/web-link/zipball/d6ef738f97b60d859652d92f10bf8645bca28cd6", - "reference": "d6ef738f97b60d859652d92f10bf8645bca28cd6", + "url": "https://api.github.com/repos/symfony/web-link/zipball/56c2edf81a4347f86ba148d96883ef4f5980a1ed", + "reference": "56c2edf81a4347f86ba148d96883ef4f5980a1ed", "shasum": "" }, "require": { @@ -6709,7 +6709,7 @@ "push" ], "support": { - "source": "https://github.com/symfony/web-link/tree/v6.1.0" + "source": "https://github.com/symfony/web-link/tree/v6.1.11" }, "funding": [ { @@ -6725,20 +6725,20 @@ "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/yaml", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "ef4e569114404d6d0ae832f8ad3cd78e68cfb4d0" + "reference": "468e41d297d9c3c850e9de149d67b06a907e20b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/ef4e569114404d6d0ae832f8ad3cd78e68cfb4d0", - "reference": "ef4e569114404d6d0ae832f8ad3cd78e68cfb4d0", + "url": "https://api.github.com/repos/symfony/yaml/zipball/468e41d297d9c3c850e9de149d67b06a907e20b3", + "reference": "468e41d297d9c3c850e9de149d67b06a907e20b3", "shasum": "" }, "require": { @@ -6783,7 +6783,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v6.1.9" + "source": "https://github.com/symfony/yaml/tree/v6.1.11" }, "funding": [ { @@ -6799,7 +6799,7 @@ "type": "tidelift" } ], - "time": "2022-12-14T16:05:20+00:00" + "time": "2023-01-10T18:53:01+00:00" }, { "name": "twig/twig", @@ -7442,16 +7442,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.23", + "version": "9.2.24", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c" + "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c", - "reference": "9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2cf940ebc6355a9d430462811b5aaa308b174bed", + "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed", "shasum": "" }, "require": { @@ -7507,7 +7507,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.23" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.24" }, "funding": [ { @@ -7515,7 +7515,7 @@ "type": "github" } ], - "time": "2022-12-28T12:41:10+00:00" + "time": "2023-01-26T08:26:55+00:00" }, { "name": "phpunit/php-file-iterator", @@ -8826,16 +8826,16 @@ }, { "name": "symfony/browser-kit", - "version": "v6.1.3", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", - "reference": "2e3b6a4406c2af963c634d7bd0457402b67dcc56" + "reference": "3cacda04421f7f369d4fb840805a453f6a03b1f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/browser-kit/zipball/2e3b6a4406c2af963c634d7bd0457402b67dcc56", - "reference": "2e3b6a4406c2af963c634d7bd0457402b67dcc56", + "url": "https://api.github.com/repos/symfony/browser-kit/zipball/3cacda04421f7f369d4fb840805a453f6a03b1f9", + "reference": "3cacda04421f7f369d4fb840805a453f6a03b1f9", "shasum": "" }, "require": { @@ -8877,7 +8877,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.1.3" + "source": "https://github.com/symfony/browser-kit/tree/v6.1.11" }, "funding": [ { @@ -8893,20 +8893,20 @@ "type": "tidelift" } ], - "time": "2022-07-27T15:50:51+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/css-selector", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "a90ee25248cacfe0b1eab3b6c20e492ec5e22357" + "reference": "750a731856cd1b01c15ee0ea241addca75a376e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/a90ee25248cacfe0b1eab3b6c20e492ec5e22357", - "reference": "a90ee25248cacfe0b1eab3b6c20e492ec5e22357", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/750a731856cd1b01c15ee0ea241addca75a376e0", + "reference": "750a731856cd1b01c15ee0ea241addca75a376e0", "shasum": "" }, "require": { @@ -8942,7 +8942,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v6.1.9" + "source": "https://github.com/symfony/css-selector/tree/v6.1.11" }, "funding": [ { @@ -8958,20 +8958,20 @@ "type": "tidelift" } ], - "time": "2022-12-28T14:22:24+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/debug-bundle", - "version": "v6.1.3", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/debug-bundle.git", - "reference": "4084f86639bf0270d6dd2225fc8d7c317780dd6b" + "reference": "36d04454d5f1aee72126a2b99b401202527e566f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug-bundle/zipball/4084f86639bf0270d6dd2225fc8d7c317780dd6b", - "reference": "4084f86639bf0270d6dd2225fc8d7c317780dd6b", + "url": "https://api.github.com/repos/symfony/debug-bundle/zipball/36d04454d5f1aee72126a2b99b401202527e566f", + "reference": "36d04454d5f1aee72126a2b99b401202527e566f", "shasum": "" }, "require": { @@ -9020,7 +9020,7 @@ "description": "Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/debug-bundle/tree/v6.1.3" + "source": "https://github.com/symfony/debug-bundle/tree/v6.1.11" }, "funding": [ { @@ -9036,20 +9036,20 @@ "type": "tidelift" } ], - "time": "2022-07-20T13:46:29+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/dom-crawler", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "8d82ffee7a09f99fed85aab36667130d8435b446" + "reference": "1886590bb1f0d82c0ee3d76f2c7adad0f059db24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/8d82ffee7a09f99fed85aab36667130d8435b446", - "reference": "8d82ffee7a09f99fed85aab36667130d8435b446", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/1886590bb1f0d82c0ee3d76f2c7adad0f059db24", + "reference": "1886590bb1f0d82c0ee3d76f2c7adad0f059db24", "shasum": "" }, "require": { @@ -9090,7 +9090,7 @@ "description": "Eases DOM navigation for HTML and XML documents", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dom-crawler/tree/v6.1.9" + "source": "https://github.com/symfony/dom-crawler/tree/v6.1.11" }, "funding": [ { @@ -9106,7 +9106,7 @@ "type": "tidelift" } ], - "time": "2022-12-22T17:54:54+00:00" + "time": "2023-01-20T17:44:30+00:00" }, { "name": "symfony/maker-bundle", @@ -9203,16 +9203,16 @@ }, { "name": "symfony/monolog-bridge", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/monolog-bridge.git", - "reference": "38c16642e5228ecf20a8f67972192706c0f45d77" + "reference": "f60f530b29b9669b7dabc629097ab6b1aa85d47f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/38c16642e5228ecf20a8f67972192706c0f45d77", - "reference": "38c16642e5228ecf20a8f67972192706c0f45d77", + "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/f60f530b29b9669b7dabc629097ab6b1aa85d47f", + "reference": "f60f530b29b9669b7dabc629097ab6b1aa85d47f", "shasum": "" }, "require": { @@ -9266,7 +9266,7 @@ "description": "Provides integration for Monolog with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/monolog-bridge/tree/v6.1.9" + "source": "https://github.com/symfony/monolog-bridge/tree/v6.1.11" }, "funding": [ { @@ -9282,7 +9282,7 @@ "type": "tidelift" } ], - "time": "2022-12-14T16:05:20+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "symfony/monolog-bundle", @@ -9367,16 +9367,16 @@ }, { "name": "symfony/phpunit-bridge", - "version": "v6.2.3", + "version": "v6.2.5", "source": { "type": "git", "url": "https://github.com/symfony/phpunit-bridge.git", - "reference": "3766b8269d3bac5c214a04ebd6870e71e52bcb60" + "reference": "d759e5372de414bef53a688c7aa7e240e4fd8aa2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/3766b8269d3bac5c214a04ebd6870e71e52bcb60", - "reference": "3766b8269d3bac5c214a04ebd6870e71e52bcb60", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/d759e5372de414bef53a688c7aa7e240e4fd8aa2", + "reference": "d759e5372de414bef53a688c7aa7e240e4fd8aa2", "shasum": "" }, "require": { @@ -9430,7 +9430,7 @@ "description": "Provides utilities for PHPUnit, especially user deprecation notices management", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/phpunit-bridge/tree/v6.2.3" + "source": "https://github.com/symfony/phpunit-bridge/tree/v6.2.5" }, "funding": [ { @@ -9446,20 +9446,20 @@ "type": "tidelift" } ], - "time": "2022-12-28T14:26:22+00:00" + "time": "2023-01-01T08:38:09+00:00" }, { "name": "symfony/web-profiler-bundle", - "version": "v6.1.9", + "version": "v6.1.11", "source": { "type": "git", "url": "https://github.com/symfony/web-profiler-bundle.git", - "reference": "fd630db5a73a8ef6e7e10919d61c70d249593fa2" + "reference": "7b5ee1e5e6118b77831caf6e34bd18014f0dd247" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/fd630db5a73a8ef6e7e10919d61c70d249593fa2", - "reference": "fd630db5a73a8ef6e7e10919d61c70d249593fa2", + "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/7b5ee1e5e6118b77831caf6e34bd18014f0dd247", + "reference": "7b5ee1e5e6118b77831caf6e34bd18014f0dd247", "shasum": "" }, "require": { @@ -9508,7 +9508,7 @@ "description": "Provides a development tool that gives detailed information about the execution of any request", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/web-profiler-bundle/tree/v6.1.9" + "source": "https://github.com/symfony/web-profiler-bundle/tree/v6.1.11" }, "funding": [ { @@ -9524,7 +9524,7 @@ "type": "tidelift" } ], - "time": "2022-12-16T15:06:54+00:00" + "time": "2023-01-01T08:36:55+00:00" }, { "name": "theseer/tokenizer", diff --git a/src/Command/HiltesImportCommand.php b/src/Command/HiltesImportCommand.php index 4f3303e..3d3ddab 100644 --- a/src/Command/HiltesImportCommand.php +++ b/src/Command/HiltesImportCommand.php @@ -4,6 +4,7 @@ namespace App\Command; use App\Helper\HiltesImport; use App\Repository\StockRepository; +use App\Repository\WarehouseRepository; use Psr\Log\LoggerInterface; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; @@ -22,10 +23,12 @@ use Symfony\Component\Finder\Finder; class HiltesImportCommand extends Command { private $stockRepository; + private $warehouseRepository; private $logger; - public function __construct(StockRepository $stockRepository, LoggerInterface $logger) + public function __construct(StockRepository $stockRepository, WarehouseRepository $warehouseRepository, LoggerInterface $logger) { $this->stockRepository = $stockRepository; + $this->warehouseRepository = $warehouseRepository; $this->logger = $logger; parent::__construct(); } @@ -45,14 +48,16 @@ class HiltesImportCommand extends Command if ($arg1) { $io->note(sprintf('You passed an argument: %s', $arg1)); } + /** * @var HiltesImport */ - $hiltesImport = new HiltesImport($this->stockRepository,$this->logger); - + $hiltesImport = new HiltesImport($this->stockRepository,$this->warehouseRepository,$this->logger); $hiltesImport->startImport(); + + $io->success('Done.'); return Command::SUCCESS; diff --git a/src/Command/SwPushStockCommand.php b/src/Command/SwPushStockCommand.php index 19bf7a4..eee3b9c 100644 --- a/src/Command/SwPushStockCommand.php +++ b/src/Command/SwPushStockCommand.php @@ -2,6 +2,7 @@ namespace App\Command; +use App\Helper\Shopware; use App\Repository\StockRepository; use Psr\Log\LoggerInterface; use Symfony\Component\Console\Attribute\AsCommand; @@ -47,13 +48,9 @@ class SwPushStockCommand extends Command // // ... // } - $stock = $this->getStock(); + $shopware = new Shopware(); - if($stock){ - - } - - dump($stock); + $shopware->pushStock(); $io->success('Done.'); @@ -61,9 +58,5 @@ class SwPushStockCommand extends Command } - public function getStock(){ - return $this->stockRepository->findAll(); - } - } diff --git a/src/Entity/Stock.php b/src/Entity/Stock.php index 8bfaffb..3c4a676 100644 --- a/src/Entity/Stock.php +++ b/src/Entity/Stock.php @@ -69,12 +69,12 @@ class Stock return $this; } - public function getWarehouseId(): ?Warehouse + public function getWarehouseId(): ?int { return $this->warehouse_id; } - public function setWarehouseId(?Warehouse $warehouse_id): self + public function setWarehouseId(int $warehouse_id): self { $this->warehouse_id = $warehouse_id; @@ -92,4 +92,10 @@ class Stock return $this; } + + public function setWarehouse(Warehouse $warehouse): self + { + $this->warehouse_id = $warehouse->getId(); + return $this; + } } diff --git a/src/Entity/Warehouse.php b/src/Entity/Warehouse.php index 7a35be5..c69926f 100644 --- a/src/Entity/Warehouse.php +++ b/src/Entity/Warehouse.php @@ -31,6 +31,20 @@ class Warehouse return $this->id; } + public function setID(int $id): self + { + $this->id = $id; + + return $this; + } + + public function setWarehouseId(int $warehouse_id): self + { + $this->warehouse_id = $warehouse_id; + + return $this; + } + /** * @return Collection */ diff --git a/src/Helper/HiltesImport.php b/src/Helper/HiltesImport.php index bb8137a..38e1a76 100644 --- a/src/Helper/HiltesImport.php +++ b/src/Helper/HiltesImport.php @@ -4,7 +4,9 @@ namespace App\Helper; use App\Entity\Stock; +use App\Entity\Warehouse; use App\Repository\StockRepository; +use App\Repository\WarehouseRepository; use Doctrine\ORM\EntityManager; use Psr\Log\LoggerInterface; use Symfony\Component\Finder\Finder; @@ -12,13 +14,16 @@ use Symfony\Component\Finder\Finder; class HiltesImport { private $stockRepository; + private $warehouseRepository; private $logger; protected $currentDirPath; protected $arrData = array(); - public function __construct(StockRepository $stockRepository, LoggerInterface $logger) + public function __construct(StockRepository $stockRepository, WarehouseRepository $warehouseRepository, LoggerInterface $logger) { $this->stockRepository = $stockRepository; + $this->warehouseRepository = $warehouseRepository; + $this->logger = $logger; $this->currentDirPath = getcwd(); @@ -87,6 +92,8 @@ class HiltesImport dump($file->getRealPath()); + $this->logger->info('Starte Import von ' . $file->getRealPath()); + $c = 0; while (!$file->eof()) { $c++; @@ -176,30 +183,73 @@ class HiltesImport protected function saveInfoDatei(Array $arr){ } + + /** + * @param array $arr + * @return void + */ protected function saveData(Array $arr){ #dump($arr); $stock = new Stock(); + #menge; $stock->setStock((int)$arr[2]); #filiale; - //$stock->setWarehouseId((int)$arr[0]); + + $warehouse = $this->warehouseRepository->findOneBy(['id'=> $arr[2]]); + + + + if($warehouse instanceof Warehouse){ + $stock->setWarehouseId($warehouse->getId()); + }else{ + $warehouse = new Warehouse(); + $warehouse->setId((int)$arr[2]); + $warehouse->setPriority(0); + $id = $this->warehouseRepository->add($warehouse, true); + # $stock->setWarehouseId($id); + } + + # + + // $stock->setWarehouseId($warehouse->getId()); #gtin; $stock->setGtin($arr[1]); - - //ump($stock); - try{ $this->stockRepository->upsert($stock); }catch (\Exception $e){ + $this->logger->error($e->getMessage()); dump($e->getMessage()); } - } + + /** + * @param $id + * @return mixed + */ + private function getWarehouseId($id){ + $warehouse = $this->warehouseRepository->findOneBy(array('id'=>$id)); + if($warehouse instanceof Warehouse){ + return $warehouse->getId(); + }else{ + $warehouse = new Warehouse(); + + + $warehouse->setPriority(0); + $warehouse->setId($this->warehouseRepository->add($warehouse, true)); + + dump($warehouse); + + + + return $warehouse; + } + } } diff --git a/src/Helper/Shopware.php b/src/Helper/Shopware.php index 569f705..e5734e6 100644 --- a/src/Helper/Shopware.php +++ b/src/Helper/Shopware.php @@ -2,6 +2,8 @@ namespace App\Helper; +use App\Entity\Products; +use App\Repository\ProductsRepository; use Psr\Log\LoggerInterface; use Vin\ShopwareSdk\Client\AdminAuthenticator; use Vin\ShopwareSdk\Client\GrantType\ClientCredentialsGrantType; @@ -64,13 +66,23 @@ class Shopware } } - public function setProduct(){ + public function setProduct(Products $product){ $context = new Context($_ENV['SHOPWARE_API_URL'], $this->shopwareAuth()); $productRepository = RepositoryFactory::create(ProductDefinition::ENTITY_NAME); + $productRepository->update($product, $context); + } - $productRepository->update(); + public function pushStock() + { + $productRepository = new ProductsRepository(); + $products = $productRepository->findAll(); + + + foreach ($products as $product) { + $this->setProduct($product); + } } } \ No newline at end of file diff --git a/src/Repository/StockRepository.php b/src/Repository/StockRepository.php index ee1a0f9..867ebb2 100644 --- a/src/Repository/StockRepository.php +++ b/src/Repository/StockRepository.php @@ -3,6 +3,7 @@ namespace App\Repository; use App\Entity\Stock; +use App\Entity\Warehouse; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; @@ -47,6 +48,7 @@ class StockRepository extends ServiceEntityRepository } $stock->setStock($entity->getStock()); + $stock->setUpdateTime(new \DateTime('now')); $this->getEntityManager()->flush(); } @@ -55,16 +57,28 @@ class StockRepository extends ServiceEntityRepository * @param Stock $entity * @return void */ - public function upsert(Stock $entity): void + public function upsert(Stock $stock): void { - $stock = $this->findByGtin($entity->getGtin()); + //$stock = $this->findByGtin($entity->getGtin()); - if ($stock) { +// $warehouse = $this->getEntityManager()->find(Warehouse::class, $stock->getWarehouseId()); +// $stock->setWarehouse($warehouse); +// +// $this->getEntityManager()->persist($stock); +// +// $this->getEntityManager()->flush(); + + $s = $this->findOneBy([ + 'gtin' => $stock->getGtin(), + //'warehouse_id' => $stock->getWarehouseId() + ]); + + if ($s) { // $stock->setStock($entity->getStock()); // $this->getEntityManager()->flush(); - $this->update($entity,$stock[0]->getId()); + $this->update($stock,$s->getId()); }else{ - $this->add($entity,true); + $this->add($stock,true); } } diff --git a/src/Repository/WarehouseRepository.php b/src/Repository/WarehouseRepository.php index 17925f3..9565e40 100644 --- a/src/Repository/WarehouseRepository.php +++ b/src/Repository/WarehouseRepository.php @@ -21,13 +21,15 @@ class WarehouseRepository extends ServiceEntityRepository parent::__construct($registry, Warehouse::class); } - public function add(Warehouse $entity, bool $flush = false): void + public function add(Warehouse $entity, bool $flush = false): ?int { $this->getEntityManager()->persist($entity); if ($flush) { $this->getEntityManager()->flush(); } + + return $entity->getId(); } public function remove(Warehouse $entity, bool $flush = false): void