From ce8f54dc467358833e76f694fc9ce01fc3061e42 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Sun, 16 Jan 2022 20:12:16 +0000 Subject: [PATCH] support json on oauth --- composer.lock | 69 +++++++++++++++++++++++++++++++++--- config/bundles.php | 1 + plugins/OAuth2/composer.json | 1 + symfony.lock | 3 ++ 4 files changed, 70 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index be0eb1e1b7..ffc618e96e 100644 --- a/composer.lock +++ b/composer.lock @@ -5194,6 +5194,67 @@ }, "time": "2021-04-01T19:09:10+00:00" }, + { + "name": "symfony-bundles/json-request-bundle", + "version": "4.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony-bundles/json-request-bundle.git", + "reference": "dfb6ca1697496a3c4d3914901c64ed946cce2f4b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony-bundles/json-request-bundle/zipball/dfb6ca1697496a3c4d3914901c64ed946cce2f4b", + "reference": "dfb6ca1697496a3c4d3914901c64ed946cce2f4b", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=7.4 || ^8.0", + "symfony/framework-bundle": "^4.3 || ^5.0 || ^6.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "phpunit/php-code-coverage": "^9.2", + "phpunit/phpunit": "^9.5", + "symfony/browser-kit": "^5.2 || ^6.0", + "symfony/yaml": "^5.2 || ^6.0" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev" + } + }, + "autoload": { + "psr-4": { + "SymfonyBundles\\JsonRequestBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dmitry Khaperets", + "email": "khaperets@gmail.com" + } + ], + "description": "Symfony JsonRequest Bundle", + "homepage": "https://github.com/symfony-bundles/json-request-bundle", + "keywords": [ + "angular", + "bundle", + "json", + "symfony" + ], + "support": { + "issues": "https://github.com/symfony-bundles/json-request-bundle/issues", + "source": "https://github.com/symfony-bundles/json-request-bundle/tree/4.1.1" + }, + "time": "2022-01-16T16:27:40+00:00" + }, { "name": "symfony/amqp-messenger", "version": "v5.4.0", @@ -13024,12 +13085,12 @@ "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "e0b23a37d83b7d1bbfdb8c0b8aa4dcd702266a65" + "reference": "c070c4b7400e038737af1bf06b0d94d053686f72" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e0b23a37d83b7d1bbfdb8c0b8aa4dcd702266a65", - "reference": "e0b23a37d83b7d1bbfdb8c0b8aa4dcd702266a65", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c070c4b7400e038737af1bf06b0d94d053686f72", + "reference": "c070c4b7400e038737af1bf06b0d94d053686f72", "shasum": "" }, "require": { @@ -13081,7 +13142,7 @@ "type": "tidelift" } ], - "time": "2022-01-15T15:04:05+00:00" + "time": "2022-01-16T19:23:59+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/config/bundles.php b/config/bundles.php index ad68455dc7..500b915ef6 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -23,4 +23,5 @@ return [ Fidry\PsyshBundle\PsyshBundle::class => ['all' => true], Trikoder\Bundle\OAuth2Bundle\TrikoderOAuth2Bundle::class => ['all' => true], Ajgarlag\Bundle\PsrHttpMessageBundle\AjgarlagPsrHttpMessageBundle::class => ['all' => true], + SymfonyBundles\JsonRequestBundle\JsonRequestBundle::class => ['all' => true], ]; diff --git a/plugins/OAuth2/composer.json b/plugins/OAuth2/composer.json index ac6523f947..b44a0dd6b9 100644 --- a/plugins/OAuth2/composer.json +++ b/plugins/OAuth2/composer.json @@ -1,6 +1,7 @@ { "require": { "nyholm/psr7": "*", + "symfony-bundles/json-request-bundle": "^4.1", "trikoder/oauth2-bundle": "v3.x-dev" } } diff --git a/symfony.lock b/symfony.lock index d626118c69..6c88c865f7 100644 --- a/symfony.lock +++ b/symfony.lock @@ -468,6 +468,9 @@ "someonewithpc/redis-polyfill": { "version": "dev-master" }, + "symfony-bundles/json-request-bundle": { + "version": "4.1.1" + }, "symfony/amqp-messenger": { "version": "v5.4.0" },