diff --git a/.env b/.env
index 77cfaae..3e9f9b5 100644
--- a/.env
+++ b/.env
@@ -31,7 +31,7 @@ DATABASE_URL="mysql://root:root@mysql:3306/cds_connector?serverVersion=5.7&chars
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
###< nelmio/cors-bundle ###
-SHOPWARE_API_URL="http://development.dev.localhost"
-SHOPWARE_API_KEY="dkVsVndWV2M4dVJLZEhMbkdMNWlLSXJsTXVjMW5jdVNrNzlBOFE"
-SHOPWARE_API_ID="SWIAVTJ1ZDLLY2TJT1D0ZEDBAQ"
+SHOPWARE_API_URL="development.dev.localhost"
+SHOPWARE_API_KEY="S2hySDNyZ214dGRVQmFBSURQbkRvajIyZldxOHB4RktZakxaYmo"
+SHOPWARE_API_ID="SWUAB1JGAFHTMME5DUGWDWN1EQ"
diff --git a/.idea/php.xml b/.idea/php.xml
index 6e98374..8f8cf31 100644
--- a/.idea/php.xml
+++ b/.idea/php.xml
@@ -93,6 +93,14 @@
+
+
+
+
+
+
+
+
diff --git a/composer.json b/composer.json
index 0384313..3768e10 100644
--- a/composer.json
+++ b/composer.json
@@ -32,7 +32,8 @@
"symfony/serializer": "6.1.*",
"symfony/twig-bundle": "6.1.*",
"symfony/validator": "6.1.*",
- "symfony/yaml": "6.1.*"
+ "symfony/yaml": "6.1.*",
+ "vin-sw/shopware-sdk": "^1.4"
},
"require-dev": {
"symfony/debug-bundle": "6.1.*",
diff --git a/composer.lock b/composer.lock
index 9e7b15c..cbc43b3 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "c4650435b5c2bd25df4752ab2fd36270",
+ "content-hash": "beccb164b9fdf99d0fbdc76e959c8315",
"packages": [
{
"name": "api-platform/core",
@@ -1679,6 +1679,329 @@
],
"time": "2022-05-05T09:31:05+00:00"
},
+ {
+ "name": "guzzlehttp/guzzle",
+ "version": "7.4.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/guzzle/guzzle.git",
+ "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
+ "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
+ "shasum": ""
+ },
+ "require": {
+ "ext-json": "*",
+ "guzzlehttp/promises": "^1.5",
+ "guzzlehttp/psr7": "^1.9 || ^2.4",
+ "php": "^7.2.5 || ^8.0",
+ "psr/http-client": "^1.0",
+ "symfony/deprecation-contracts": "^2.2 || ^3.0"
+ },
+ "provide": {
+ "psr/http-client-implementation": "1.0"
+ },
+ "require-dev": {
+ "bamarni/composer-bin-plugin": "^1.4.1",
+ "ext-curl": "*",
+ "php-http/client-integration-tests": "^3.0",
+ "phpunit/phpunit": "^8.5.5 || ^9.3.5",
+ "psr/log": "^1.1 || ^2.0 || ^3.0"
+ },
+ "suggest": {
+ "ext-curl": "Required for CURL handler support",
+ "ext-intl": "Required for Internationalized Domain Name (IDN) support",
+ "psr/log": "Required for using the Log middleware"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "7.4-dev"
+ }
+ },
+ "autoload": {
+ "files": [
+ "src/functions_include.php"
+ ],
+ "psr-4": {
+ "GuzzleHttp\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Graham Campbell",
+ "email": "hello@gjcampbell.co.uk",
+ "homepage": "https://github.com/GrahamCampbell"
+ },
+ {
+ "name": "Michael Dowling",
+ "email": "mtdowling@gmail.com",
+ "homepage": "https://github.com/mtdowling"
+ },
+ {
+ "name": "Jeremy Lindblom",
+ "email": "jeremeamia@gmail.com",
+ "homepage": "https://github.com/jeremeamia"
+ },
+ {
+ "name": "George Mponos",
+ "email": "gmponos@gmail.com",
+ "homepage": "https://github.com/gmponos"
+ },
+ {
+ "name": "Tobias Nyholm",
+ "email": "tobias.nyholm@gmail.com",
+ "homepage": "https://github.com/Nyholm"
+ },
+ {
+ "name": "Márk Sági-Kazár",
+ "email": "mark.sagikazar@gmail.com",
+ "homepage": "https://github.com/sagikazarmark"
+ },
+ {
+ "name": "Tobias Schultze",
+ "email": "webmaster@tubo-world.de",
+ "homepage": "https://github.com/Tobion"
+ }
+ ],
+ "description": "Guzzle is a PHP HTTP client library",
+ "keywords": [
+ "client",
+ "curl",
+ "framework",
+ "http",
+ "http client",
+ "psr-18",
+ "psr-7",
+ "rest",
+ "web service"
+ ],
+ "support": {
+ "issues": "https://github.com/guzzle/guzzle/issues",
+ "source": "https://github.com/guzzle/guzzle/tree/7.4.5"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/GrahamCampbell",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/Nyholm",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-06-20T22:16:13+00:00"
+ },
+ {
+ "name": "guzzlehttp/promises",
+ "version": "1.5.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/guzzle/promises.git",
+ "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
+ "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.5"
+ },
+ "require-dev": {
+ "symfony/phpunit-bridge": "^4.4 || ^5.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.5-dev"
+ }
+ },
+ "autoload": {
+ "files": [
+ "src/functions_include.php"
+ ],
+ "psr-4": {
+ "GuzzleHttp\\Promise\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Graham Campbell",
+ "email": "hello@gjcampbell.co.uk",
+ "homepage": "https://github.com/GrahamCampbell"
+ },
+ {
+ "name": "Michael Dowling",
+ "email": "mtdowling@gmail.com",
+ "homepage": "https://github.com/mtdowling"
+ },
+ {
+ "name": "Tobias Nyholm",
+ "email": "tobias.nyholm@gmail.com",
+ "homepage": "https://github.com/Nyholm"
+ },
+ {
+ "name": "Tobias Schultze",
+ "email": "webmaster@tubo-world.de",
+ "homepage": "https://github.com/Tobion"
+ }
+ ],
+ "description": "Guzzle promises library",
+ "keywords": [
+ "promise"
+ ],
+ "support": {
+ "issues": "https://github.com/guzzle/promises/issues",
+ "source": "https://github.com/guzzle/promises/tree/1.5.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/GrahamCampbell",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/Nyholm",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-10-22T20:56:57+00:00"
+ },
+ {
+ "name": "guzzlehttp/psr7",
+ "version": "2.4.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/guzzle/psr7.git",
+ "reference": "13388f00956b1503577598873fffb5ae994b5737"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737",
+ "reference": "13388f00956b1503577598873fffb5ae994b5737",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2.5 || ^8.0",
+ "psr/http-factory": "^1.0",
+ "psr/http-message": "^1.0",
+ "ralouphie/getallheaders": "^3.0"
+ },
+ "provide": {
+ "psr/http-factory-implementation": "1.0",
+ "psr/http-message-implementation": "1.0"
+ },
+ "require-dev": {
+ "bamarni/composer-bin-plugin": "^1.4.1",
+ "http-interop/http-factory-tests": "^0.9",
+ "phpunit/phpunit": "^8.5.8 || ^9.3.10"
+ },
+ "suggest": {
+ "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.4-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "GuzzleHttp\\Psr7\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Graham Campbell",
+ "email": "hello@gjcampbell.co.uk",
+ "homepage": "https://github.com/GrahamCampbell"
+ },
+ {
+ "name": "Michael Dowling",
+ "email": "mtdowling@gmail.com",
+ "homepage": "https://github.com/mtdowling"
+ },
+ {
+ "name": "George Mponos",
+ "email": "gmponos@gmail.com",
+ "homepage": "https://github.com/gmponos"
+ },
+ {
+ "name": "Tobias Nyholm",
+ "email": "tobias.nyholm@gmail.com",
+ "homepage": "https://github.com/Nyholm"
+ },
+ {
+ "name": "Márk Sági-Kazár",
+ "email": "mark.sagikazar@gmail.com",
+ "homepage": "https://github.com/sagikazarmark"
+ },
+ {
+ "name": "Tobias Schultze",
+ "email": "webmaster@tubo-world.de",
+ "homepage": "https://github.com/Tobion"
+ },
+ {
+ "name": "Márk Sági-Kazár",
+ "email": "mark.sagikazar@gmail.com",
+ "homepage": "https://sagikazarmark.hu"
+ }
+ ],
+ "description": "PSR-7 message implementation that also provides common utility methods",
+ "keywords": [
+ "http",
+ "message",
+ "psr-7",
+ "request",
+ "response",
+ "stream",
+ "uri",
+ "url"
+ ],
+ "support": {
+ "issues": "https://github.com/guzzle/psr7/issues",
+ "source": "https://github.com/guzzle/psr7/tree/2.4.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/GrahamCampbell",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/Nyholm",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-06-20T21:43:11+00:00"
+ },
{
"name": "laminas/laminas-code",
"version": "4.5.2",
@@ -1968,16 +2291,16 @@
},
{
"name": "phpstan/phpdoc-parser",
- "version": "1.6.3",
+ "version": "1.6.4",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
- "reference": "4a07085f74cb1f3fc7103efa537d9f00ebb74ec7"
+ "reference": "135607f9ccc297d6923d49c2bcf309f509413215"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/4a07085f74cb1f3fc7103efa537d9f00ebb74ec7",
- "reference": "4a07085f74cb1f3fc7103efa537d9f00ebb74ec7",
+ "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/135607f9ccc297d6923d49c2bcf309f509413215",
+ "reference": "135607f9ccc297d6923d49c2bcf309f509413215",
"shasum": ""
},
"require": {
@@ -2007,9 +2330,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.6.3"
+ "source": "https://github.com/phpstan/phpdoc-parser/tree/1.6.4"
},
- "time": "2022-06-14T11:40:08+00:00"
+ "time": "2022-06-26T13:09:08+00:00"
},
{
"name": "psr/cache",
@@ -2163,6 +2486,166 @@
},
"time": "2019-01-08T18:20:26+00:00"
},
+ {
+ "name": "psr/http-client",
+ "version": "1.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/http-client.git",
+ "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
+ "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.0 || ^8.0",
+ "psr/http-message": "^1.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Http\\Client\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interface for HTTP clients",
+ "homepage": "https://github.com/php-fig/http-client",
+ "keywords": [
+ "http",
+ "http-client",
+ "psr",
+ "psr-18"
+ ],
+ "support": {
+ "source": "https://github.com/php-fig/http-client/tree/master"
+ },
+ "time": "2020-06-29T06:28:15+00:00"
+ },
+ {
+ "name": "psr/http-factory",
+ "version": "1.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/http-factory.git",
+ "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
+ "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.0.0",
+ "psr/http-message": "^1.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Http\\Message\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interfaces for PSR-7 HTTP message factories",
+ "keywords": [
+ "factory",
+ "http",
+ "message",
+ "psr",
+ "psr-17",
+ "psr-7",
+ "request",
+ "response"
+ ],
+ "support": {
+ "source": "https://github.com/php-fig/http-factory/tree/master"
+ },
+ "time": "2019-04-30T12:38:16+00:00"
+ },
+ {
+ "name": "psr/http-message",
+ "version": "1.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/http-message.git",
+ "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
+ "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Http\\Message\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interface for HTTP messages",
+ "homepage": "https://github.com/php-fig/http-message",
+ "keywords": [
+ "http",
+ "http-message",
+ "psr",
+ "psr-7",
+ "request",
+ "response"
+ ],
+ "support": {
+ "source": "https://github.com/php-fig/http-message/tree/master"
+ },
+ "time": "2016-08-06T14:39:51+00:00"
+ },
{
"name": "psr/link",
"version": "2.0.1",
@@ -2269,6 +2752,50 @@
},
"time": "2021-07-14T16:46:02+00:00"
},
+ {
+ "name": "ralouphie/getallheaders",
+ "version": "3.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/ralouphie/getallheaders.git",
+ "reference": "120b605dfeb996808c31b6477290a714d356e822"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
+ "reference": "120b605dfeb996808c31b6477290a714d356e822",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.6"
+ },
+ "require-dev": {
+ "php-coveralls/php-coveralls": "^2.1",
+ "phpunit/phpunit": "^5 || ^6.5"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/getallheaders.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Ralph Khattar",
+ "email": "ralph.khattar@gmail.com"
+ }
+ ],
+ "description": "A polyfill for getallheaders.",
+ "support": {
+ "issues": "https://github.com/ralouphie/getallheaders/issues",
+ "source": "https://github.com/ralouphie/getallheaders/tree/develop"
+ },
+ "time": "2019-03-08T08:55:37+00:00"
+ },
{
"name": "sensio/framework-extra-bundle",
"version": "v6.2.6",
@@ -2421,16 +2948,16 @@
},
{
"name": "symfony/cache",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/cache.git",
- "reference": "364fc90734230d936ac2db8e897cc03ec8497bbb"
+ "reference": "7d8415956df68c8dcbc9468e119945e39bacead1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/cache/zipball/364fc90734230d936ac2db8e897cc03ec8497bbb",
- "reference": "364fc90734230d936ac2db8e897cc03ec8497bbb",
+ "url": "https://api.github.com/repos/symfony/cache/zipball/7d8415956df68c8dcbc9468e119945e39bacead1",
+ "reference": "7d8415956df68c8dcbc9468e119945e39bacead1",
"shasum": ""
},
"require": {
@@ -2497,7 +3024,7 @@
"psr6"
],
"support": {
- "source": "https://github.com/symfony/cache/tree/v6.1.1"
+ "source": "https://github.com/symfony/cache/tree/v6.1.2"
},
"funding": [
{
@@ -2513,7 +3040,7 @@
"type": "tidelift"
}
],
- "time": "2022-06-06T19:15:01+00:00"
+ "time": "2022-06-19T13:21:48+00:00"
},
{
"name": "symfony/cache-contracts",
@@ -2673,16 +3200,16 @@
},
{
"name": "symfony/console",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "6187424023fbffcd757789aeb517c9161b1eabee"
+ "reference": "7a86c1c42fbcb69b59768504c7bca1d3767760b7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/6187424023fbffcd757789aeb517c9161b1eabee",
- "reference": "6187424023fbffcd757789aeb517c9161b1eabee",
+ "url": "https://api.github.com/repos/symfony/console/zipball/7a86c1c42fbcb69b59768504c7bca1d3767760b7",
+ "reference": "7a86c1c42fbcb69b59768504c7bca1d3767760b7",
"shasum": ""
},
"require": {
@@ -2749,7 +3276,7 @@
"terminal"
],
"support": {
- "source": "https://github.com/symfony/console/tree/v6.1.1"
+ "source": "https://github.com/symfony/console/tree/v6.1.2"
},
"funding": [
{
@@ -2765,20 +3292,20 @@
"type": "tidelift"
}
],
- "time": "2022-06-08T14:02:09+00:00"
+ "time": "2022-06-26T13:01:30+00:00"
},
{
"name": "symfony/dependency-injection",
- "version": "v6.1.0",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/dependency-injection.git",
- "reference": "fc1fcd2b153f585934e80055bb3254913def2a6e"
+ "reference": "5635ff016a814d7984b1c4644ad28e7df546077b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/fc1fcd2b153f585934e80055bb3254913def2a6e",
- "reference": "fc1fcd2b153f585934e80055bb3254913def2a6e",
+ "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/5635ff016a814d7984b1c4644ad28e7df546077b",
+ "reference": "5635ff016a814d7984b1c4644ad28e7df546077b",
"shasum": ""
},
"require": {
@@ -2836,7 +3363,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.0"
+ "source": "https://github.com/symfony/dependency-injection/tree/v6.1.2"
},
"funding": [
{
@@ -2852,7 +3379,7 @@
"type": "tidelift"
}
],
- "time": "2022-05-27T06:40:20+00:00"
+ "time": "2022-06-26T13:01:30+00:00"
},
{
"name": "symfony/deprecation-contracts",
@@ -2923,16 +3450,16 @@
},
{
"name": "symfony/doctrine-bridge",
- "version": "v6.1.0",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/doctrine-bridge.git",
- "reference": "8f0543dce92eb527af3cddf7134607cffcebfa42"
+ "reference": "3f5e41d66dc82b92f31a1c6cc6bb3443cb8844f4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/8f0543dce92eb527af3cddf7134607cffcebfa42",
- "reference": "8f0543dce92eb527af3cddf7134607cffcebfa42",
+ "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/3f5e41d66dc82b92f31a1c6cc6bb3443cb8844f4",
+ "reference": "3f5e41d66dc82b92f31a1c6cc6bb3443cb8844f4",
"shasum": ""
},
"require": {
@@ -3018,7 +3545,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.0"
+ "source": "https://github.com/symfony/doctrine-bridge/tree/v6.1.2"
},
"funding": [
{
@@ -3034,7 +3561,7 @@
"type": "tidelift"
}
],
- "time": "2022-05-27T06:30:26+00:00"
+ "time": "2022-06-21T07:16:29+00:00"
},
{
"name": "symfony/dotenv",
@@ -3344,16 +3871,16 @@
},
{
"name": "symfony/expression-language",
- "version": "v6.1.0",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/expression-language.git",
- "reference": "be8d1306b69651b63a80319b2b0972cadc30f2ec"
+ "reference": "909368a5c6a4a22d35174ec7811002f8d66435ba"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/expression-language/zipball/be8d1306b69651b63a80319b2b0972cadc30f2ec",
- "reference": "be8d1306b69651b63a80319b2b0972cadc30f2ec",
+ "url": "https://api.github.com/repos/symfony/expression-language/zipball/909368a5c6a4a22d35174ec7811002f8d66435ba",
+ "reference": "909368a5c6a4a22d35174ec7811002f8d66435ba",
"shasum": ""
},
"require": {
@@ -3387,7 +3914,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.0"
+ "source": "https://github.com/symfony/expression-language/tree/v6.1.2"
},
"funding": [
{
@@ -3403,7 +3930,7 @@
"type": "tidelift"
}
],
- "time": "2022-05-27T06:38:45+00:00"
+ "time": "2022-06-19T13:21:48+00:00"
},
{
"name": "symfony/filesystem",
@@ -3599,16 +4126,16 @@
},
{
"name": "symfony/form",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/form.git",
- "reference": "630eed7b1282f18a8399a0a2b3fb71c44266b73a"
+ "reference": "e7d5c8967096267d1b55e4278733aaf2bbe92528"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/form/zipball/630eed7b1282f18a8399a0a2b3fb71c44266b73a",
- "reference": "630eed7b1282f18a8399a0a2b3fb71c44266b73a",
+ "url": "https://api.github.com/repos/symfony/form/zipball/e7d5c8967096267d1b55e4278733aaf2bbe92528",
+ "reference": "e7d5c8967096267d1b55e4278733aaf2bbe92528",
"shasum": ""
},
"require": {
@@ -3681,7 +4208,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.1"
+ "source": "https://github.com/symfony/form/tree/v6.1.2"
},
"funding": [
{
@@ -3697,20 +4224,20 @@
"type": "tidelift"
}
],
- "time": "2022-06-09T12:51:38+00:00"
+ "time": "2022-06-19T13:21:48+00:00"
},
{
"name": "symfony/framework-bundle",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/framework-bundle.git",
- "reference": "260d97823252318eb3b525dd8c0bee2cc5dbfd7f"
+ "reference": "2a5c75abda7887b030fdcc7ce441d9b4a5bf1744"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/260d97823252318eb3b525dd8c0bee2cc5dbfd7f",
- "reference": "260d97823252318eb3b525dd8c0bee2cc5dbfd7f",
+ "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/2a5c75abda7887b030fdcc7ce441d9b4a5bf1744",
+ "reference": "2a5c75abda7887b030fdcc7ce441d9b4a5bf1744",
"shasum": ""
},
"require": {
@@ -3832,7 +4359,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.1"
+ "source": "https://github.com/symfony/framework-bundle/tree/v6.1.2"
},
"funding": [
{
@@ -3848,20 +4375,20 @@
"type": "tidelift"
}
],
- "time": "2022-06-09T10:53:06+00:00"
+ "time": "2022-06-26T10:01:04+00:00"
},
{
"name": "symfony/http-client",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-client.git",
- "reference": "c5473d69640980367a6bdb0cdb449225dcaa991b"
+ "reference": "ea1af6c8cc479147d67a3fead457dd7b06261041"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-client/zipball/c5473d69640980367a6bdb0cdb449225dcaa991b",
- "reference": "c5473d69640980367a6bdb0cdb449225dcaa991b",
+ "url": "https://api.github.com/repos/symfony/http-client/zipball/ea1af6c8cc479147d67a3fead457dd7b06261041",
+ "reference": "ea1af6c8cc479147d67a3fead457dd7b06261041",
"shasum": ""
},
"require": {
@@ -3916,7 +4443,7 @@
"description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/http-client/tree/v6.1.1"
+ "source": "https://github.com/symfony/http-client/tree/v6.1.2"
},
"funding": [
{
@@ -3932,7 +4459,7 @@
"type": "tidelift"
}
],
- "time": "2022-06-09T13:06:55+00:00"
+ "time": "2022-06-19T13:02:30+00:00"
},
{
"name": "symfony/http-client-contracts",
@@ -4017,16 +4544,16 @@
},
{
"name": "symfony/http-foundation",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
- "reference": "a58dc88d56e04e57993d96c1407a17407610e1df"
+ "reference": "86119d294e51afe4d8e07da96b63332bd1f3f52c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-foundation/zipball/a58dc88d56e04e57993d96c1407a17407610e1df",
- "reference": "a58dc88d56e04e57993d96c1407a17407610e1df",
+ "url": "https://api.github.com/repos/symfony/http-foundation/zipball/86119d294e51afe4d8e07da96b63332bd1f3f52c",
+ "reference": "86119d294e51afe4d8e07da96b63332bd1f3f52c",
"shasum": ""
},
"require": {
@@ -4069,7 +4596,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.1"
+ "source": "https://github.com/symfony/http-foundation/tree/v6.1.2"
},
"funding": [
{
@@ -4085,20 +4612,20 @@
"type": "tidelift"
}
],
- "time": "2022-05-31T14:28:03+00:00"
+ "time": "2022-06-19T13:21:48+00:00"
},
{
"name": "symfony/http-kernel",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
- "reference": "86c4d6f6c5b6cd012df41e3b950c924b3ffdc019"
+ "reference": "8aaede489900dda61aee208557f63bfa1bca0877"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-kernel/zipball/86c4d6f6c5b6cd012df41e3b950c924b3ffdc019",
- "reference": "86c4d6f6c5b6cd012df41e3b950c924b3ffdc019",
+ "url": "https://api.github.com/repos/symfony/http-kernel/zipball/8aaede489900dda61aee208557f63bfa1bca0877",
+ "reference": "8aaede489900dda61aee208557f63bfa1bca0877",
"shasum": ""
},
"require": {
@@ -4179,7 +4706,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.1"
+ "source": "https://github.com/symfony/http-kernel/tree/v6.1.2"
},
"funding": [
{
@@ -4195,7 +4722,7 @@
"type": "tidelift"
}
],
- "time": "2022-06-09T17:31:33+00:00"
+ "time": "2022-06-26T17:06:14+00:00"
},
{
"name": "symfony/options-resolver",
@@ -4752,16 +5279,16 @@
},
{
"name": "symfony/property-info",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/property-info.git",
- "reference": "3d328abe4aac447360cafa6ba6f019db0c12f378"
+ "reference": "4989684b39c929fcf3ba432afdd932879fbc1334"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/property-info/zipball/3d328abe4aac447360cafa6ba6f019db0c12f378",
- "reference": "3d328abe4aac447360cafa6ba6f019db0c12f378",
+ "url": "https://api.github.com/repos/symfony/property-info/zipball/4989684b39c929fcf3ba432afdd932879fbc1334",
+ "reference": "4989684b39c929fcf3ba432afdd932879fbc1334",
"shasum": ""
},
"require": {
@@ -4821,7 +5348,7 @@
"validator"
],
"support": {
- "source": "https://github.com/symfony/property-info/tree/v6.1.1"
+ "source": "https://github.com/symfony/property-info/tree/v6.1.2"
},
"funding": [
{
@@ -4837,7 +5364,7 @@
"type": "tidelift"
}
],
- "time": "2022-05-31T17:22:23+00:00"
+ "time": "2022-06-10T06:48:13+00:00"
},
{
"name": "symfony/proxy-manager-bridge",
@@ -5171,16 +5698,16 @@
},
{
"name": "symfony/security-core",
- "version": "v6.1.0",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/security-core.git",
- "reference": "5dc2a87f4522c6ff4b034e5ac495f2c3fbb6e867"
+ "reference": "56e0bcb3ba556785e651fe1cb07603bd0f13039d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/security-core/zipball/5dc2a87f4522c6ff4b034e5ac495f2c3fbb6e867",
- "reference": "5dc2a87f4522c6ff4b034e5ac495f2c3fbb6e867",
+ "url": "https://api.github.com/repos/symfony/security-core/zipball/56e0bcb3ba556785e651fe1cb07603bd0f13039d",
+ "reference": "56e0bcb3ba556785e651fe1cb07603bd0f13039d",
"shasum": ""
},
"require": {
@@ -5242,7 +5769,7 @@
"description": "Symfony Security Component - Core Library",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/security-core/tree/v6.1.0"
+ "source": "https://github.com/symfony/security-core/tree/v6.1.2"
},
"funding": [
{
@@ -5258,7 +5785,7 @@
"type": "tidelift"
}
],
- "time": "2022-05-11T12:12:29+00:00"
+ "time": "2022-06-25T06:59:01+00:00"
},
{
"name": "symfony/security-csrf",
@@ -5333,16 +5860,16 @@
},
{
"name": "symfony/security-http",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/security-http.git",
- "reference": "a7dca916185cffb0a1e4510d113b25a61dbd8f16"
+ "reference": "698de9a50514187dcd4c5112e1a5d126a2c36434"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/security-http/zipball/a7dca916185cffb0a1e4510d113b25a61dbd8f16",
- "reference": "a7dca916185cffb0a1e4510d113b25a61dbd8f16",
+ "url": "https://api.github.com/repos/symfony/security-http/zipball/698de9a50514187dcd4c5112e1a5d126a2c36434",
+ "reference": "698de9a50514187dcd4c5112e1a5d126a2c36434",
"shasum": ""
},
"require": {
@@ -5396,7 +5923,7 @@
"description": "Symfony Security Component - HTTP Integration",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/security-http/tree/v6.1.1"
+ "source": "https://github.com/symfony/security-http/tree/v6.1.2"
},
"funding": [
{
@@ -5412,20 +5939,20 @@
"type": "tidelift"
}
],
- "time": "2022-06-07T22:11:10+00:00"
+ "time": "2022-06-26T13:01:30+00:00"
},
{
"name": "symfony/serializer",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/serializer.git",
- "reference": "96a4db91d2655a85d631af451ab906ccdc711a15"
+ "reference": "1634ac09337990f1a4489263be090a40b0acd985"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/serializer/zipball/96a4db91d2655a85d631af451ab906ccdc711a15",
- "reference": "96a4db91d2655a85d631af451ab906ccdc711a15",
+ "url": "https://api.github.com/repos/symfony/serializer/zipball/1634ac09337990f1a4489263be090a40b0acd985",
+ "reference": "1634ac09337990f1a4489263be090a40b0acd985",
"shasum": ""
},
"require": {
@@ -5497,7 +6024,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.1"
+ "source": "https://github.com/symfony/serializer/tree/v6.1.2"
},
"funding": [
{
@@ -5513,7 +6040,7 @@
"type": "tidelift"
}
],
- "time": "2022-06-06T19:15:01+00:00"
+ "time": "2022-06-26T16:35:04+00:00"
},
{
"name": "symfony/service-contracts",
@@ -5664,16 +6191,16 @@
},
{
"name": "symfony/string",
- "version": "v6.1.0",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "d3edc75baf9f1d4f94879764dda2e1ac33499529"
+ "reference": "1903f2879875280c5af944625e8246d81c2f0604"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/d3edc75baf9f1d4f94879764dda2e1ac33499529",
- "reference": "d3edc75baf9f1d4f94879764dda2e1ac33499529",
+ "url": "https://api.github.com/repos/symfony/string/zipball/1903f2879875280c5af944625e8246d81c2f0604",
+ "reference": "1903f2879875280c5af944625e8246d81c2f0604",
"shasum": ""
},
"require": {
@@ -5729,7 +6256,7 @@
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v6.1.0"
+ "source": "https://github.com/symfony/string/tree/v6.1.2"
},
"funding": [
{
@@ -5745,7 +6272,7 @@
"type": "tidelift"
}
],
- "time": "2022-04-22T08:18:23+00:00"
+ "time": "2022-06-26T16:35:04+00:00"
},
{
"name": "symfony/translation-contracts",
@@ -5830,16 +6357,16 @@
},
{
"name": "symfony/twig-bridge",
- "version": "v6.1.0",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/twig-bridge.git",
- "reference": "53ce2d7811500c0f0f94af700307ff5b1e305d3c"
+ "reference": "320b9ec7db38b78ce2ea8173b925be55e697f8e5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/53ce2d7811500c0f0f94af700307ff5b1e305d3c",
- "reference": "53ce2d7811500c0f0f94af700307ff5b1e305d3c",
+ "url": "https://api.github.com/repos/symfony/twig-bridge/zipball/320b9ec7db38b78ce2ea8173b925be55e697f8e5",
+ "reference": "320b9ec7db38b78ce2ea8173b925be55e697f8e5",
"shasum": ""
},
"require": {
@@ -5932,7 +6459,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.0"
+ "source": "https://github.com/symfony/twig-bridge/tree/v6.1.2"
},
"funding": [
{
@@ -5948,7 +6475,7 @@
"type": "tidelift"
}
],
- "time": "2022-05-21T13:34:40+00:00"
+ "time": "2022-06-19T13:21:48+00:00"
},
{
"name": "symfony/twig-bundle",
@@ -6392,16 +6919,16 @@
},
{
"name": "symfony/yaml",
- "version": "v6.1.0",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
- "reference": "84ce4f9d2d68f306f971a39d949d8f4b5550dba2"
+ "reference": "b01c4e7dc6a51cbf114567af04a19789fd1011fe"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/84ce4f9d2d68f306f971a39d949d8f4b5550dba2",
- "reference": "84ce4f9d2d68f306f971a39d949d8f4b5550dba2",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/b01c4e7dc6a51cbf114567af04a19789fd1011fe",
+ "reference": "b01c4e7dc6a51cbf114567af04a19789fd1011fe",
"shasum": ""
},
"require": {
@@ -6446,7 +6973,7 @@
"description": "Loads and dumps YAML files",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/yaml/tree/v6.1.0"
+ "source": "https://github.com/symfony/yaml/tree/v6.1.2"
},
"funding": [
{
@@ -6462,7 +6989,7 @@
"type": "tidelift"
}
],
- "time": "2022-04-15T14:25:02+00:00"
+ "time": "2022-06-20T12:01:07+00:00"
},
{
"name": "twig/twig",
@@ -6540,6 +7067,57 @@
],
"time": "2022-05-17T05:48:52+00:00"
},
+ {
+ "name": "vin-sw/shopware-sdk",
+ "version": "1.4.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/vienthuong/shopware-php-sdk.git",
+ "reference": "30686d831b657b95b797853dfcd4acc3144fab4a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/vienthuong/shopware-php-sdk/zipball/30686d831b657b95b797853dfcd4acc3144fab4a",
+ "reference": "30686d831b657b95b797853dfcd4acc3144fab4a",
+ "shasum": ""
+ },
+ "require": {
+ "ext-json": "*",
+ "guzzlehttp/guzzle": "^7.0",
+ "php": "^7.4 || ^8.0",
+ "psr/http-client": "^1.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^0.12.89",
+ "phpunit/phpunit": "*",
+ "squizlabs/php_codesniffer": "3.*",
+ "symfony/var-dumper": "^5.3",
+ "symplify/config-transformer": "^9.3",
+ "symplify/easy-coding-standard": "9.3.20"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Vin\\ShopwareSdk\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "vin",
+ "email": "levienthuong@gmail.com"
+ }
+ ],
+ "description": "A PHP SDK for Shopware 6 Platform",
+ "support": {
+ "issues": "https://github.com/vienthuong/shopware-php-sdk/issues",
+ "source": "https://github.com/vienthuong/shopware-php-sdk/tree/1.4.0"
+ },
+ "time": "2022-03-04T17:00:16+00:00"
+ },
{
"name": "webmozart/assert",
"version": "1.11.0",
@@ -6986,16 +7564,16 @@
},
{
"name": "symfony/monolog-bridge",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/monolog-bridge.git",
- "reference": "3681f92d3870c00d789f4bfa426ad0273093aa92"
+ "reference": "1efd6a42b1dc80e03bd74d4a2fdc85e728dc2627"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/3681f92d3870c00d789f4bfa426ad0273093aa92",
- "reference": "3681f92d3870c00d789f4bfa426ad0273093aa92",
+ "url": "https://api.github.com/repos/symfony/monolog-bridge/zipball/1efd6a42b1dc80e03bd74d4a2fdc85e728dc2627",
+ "reference": "1efd6a42b1dc80e03bd74d4a2fdc85e728dc2627",
"shasum": ""
},
"require": {
@@ -7049,7 +7627,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.1"
+ "source": "https://github.com/symfony/monolog-bridge/tree/v6.1.2"
},
"funding": [
{
@@ -7065,7 +7643,7 @@
"type": "tidelift"
}
],
- "time": "2022-05-27T12:29:00+00:00"
+ "time": "2022-06-21T08:28:57+00:00"
},
{
"name": "symfony/monolog-bundle",
@@ -7150,23 +7728,23 @@
},
{
"name": "symfony/web-profiler-bundle",
- "version": "v6.1.1",
+ "version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/web-profiler-bundle.git",
- "reference": "2a5bdd2d82dda75475c428c0fd1d59b6d7aad117"
+ "reference": "6589c2ee4b94d7df2f8ca160ec41265fee3f33eb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/2a5bdd2d82dda75475c428c0fd1d59b6d7aad117",
- "reference": "2a5bdd2d82dda75475c428c0fd1d59b6d7aad117",
+ "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/6589c2ee4b94d7df2f8ca160ec41265fee3f33eb",
+ "reference": "6589c2ee4b94d7df2f8ca160ec41265fee3f33eb",
"shasum": ""
},
"require": {
"php": ">=8.1",
"symfony/config": "^5.4|^6.0",
"symfony/framework-bundle": "^5.4|^6.0",
- "symfony/http-kernel": "^5.4|^6.0",
+ "symfony/http-kernel": "^6.1",
"symfony/routing": "^5.4|^6.0",
"symfony/twig-bundle": "^5.4|^6.0",
"twig/twig": "^2.13|^3.0.4"
@@ -7208,7 +7786,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.1"
+ "source": "https://github.com/symfony/web-profiler-bundle/tree/v6.1.2"
},
"funding": [
{
@@ -7224,7 +7802,7 @@
"type": "tidelift"
}
],
- "time": "2022-06-06T19:15:01+00:00"
+ "time": "2022-06-12T09:53:37+00:00"
}
],
"aliases": [],
diff --git a/src/Command/SwGetOrdersCommand.php b/src/Command/SwGetOrdersCommand.php
index d15b73a..d8aa649 100644
--- a/src/Command/SwGetOrdersCommand.php
+++ b/src/Command/SwGetOrdersCommand.php
@@ -19,6 +19,14 @@ use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;
+use Vin\ShopwareSdk\Client\AdminAuthenticator;
+use Vin\ShopwareSdk\Client\GrantType\ClientCredentialsGrantType;
+use Vin\ShopwareSdk\Data\Context;
+use Vin\ShopwareSdk\Data\Criteria;
+use Vin\ShopwareSdk\Data\Entity\Order\OrderDefinition;
+use Vin\ShopwareSdk\Data\Entity\Product\ProductDefinition;
+use Vin\ShopwareSdk\Data\Filter\EqualsFilter;
+use Vin\ShopwareSdk\Factory\RepositoryFactory;
#[AsCommand(
@@ -84,18 +92,15 @@ class SwGetOrdersCommand extends Command
private function shopwareAuth(){
- $this->client->withOptions([
- 'headers' => [
- 'Content-Type' => 'application/json',
- 'sw-access-key' => 'SWSCY1NPSKHPSFNHWGDLTMM5NQ'
- ],
- ]);
- $response = $this->client->request('GET','http://localhost/store-api/context');
+ try{
+ $grantType = new ClientCredentialsGrantType($_ENV['SHOPWARE_API_ID'], $_ENV['SHOPWARE_API_KEY']);
+ $adminClient = new AdminAuthenticator($grantType, $_ENV['SHOPWARE_API_URL']);
+ return $adminClient->fetchAccessToken();
+ }catch (\Exception $e){
+ $this->logger->error($e->getMessage());
+ }
- $body = $response->getContent();
-
- var_dump($body);
}
/**
@@ -106,39 +111,29 @@ class SwGetOrdersCommand extends Command
* @throws ClientExceptionInterface
* @throws \Exception
*/
- private function getOrdersFromSW(array $orders):void
+ private function getOrdersFromSW(array $ordersArr):void
{
+ $context = new Context($_ENV['SHOPWARE_API_URL'], $this->shopwareAuth());
- try {
- $response = $this->client->request('POST', $_ENV['SHOPWARE_API_URL'].'/store-api/search', [
- 'headers' => [
- 'Accept' => 'application/json',
- 'Content-Type' => 'application/json',
- 'sw-access-key' => $_ENV['SHOPWARE_API_KEY']
- ],
- 'body' => json_encode([
- 'limit' => 100,
- 'page' => 1,
- 'query' => [
- 'filter' => [
- 'type' => 'equals',
- 'field' => 'order.number',
- 'value' => '12345'
- ]
- ]
- ])
- ]);
- $body = $response->toArray();
+ // Create the repository for the entity
+ $orderRepository = RepositoryFactory::create(OrderDefinition::ENTITY_NAME);
- } catch (\Exception $e) {
- $this->logger->error($e->getMessage());
- throw new \Exception($e->getMessage());
- }
+ // Create the criteria
+ $criteria = new Criteria();
+ $criteria->addFilter(new EqualsFilter('orderNumber', '9f002cc7de704a6ab31e1b410547cb97'));
+
+ $criteria->addAssociation('order.orderDetails.product');
+
+ // Using this criteria and the context object that you create from authentication step, you can retrieving the result
+ $orders = $orderRepository->search($criteria, $context);
+
+
+
+ var_dump($orders);
- var_dump($body);
}
}