From 851d81fb0eddd826e2d6de98818f120825d56d8d Mon Sep 17 00:00:00 2001 From: Adam Tovatt <45209965+AdamTovatt@users.noreply.github.com> Date: Wed, 23 Sep 2020 11:56:34 +0200 Subject: [PATCH] Update UPGRADE-0.11.md Fixed typos and improved readability --- UPGRADE-0.11.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/UPGRADE-0.11.md b/UPGRADE-0.11.md index 5a6797406..0bc9cb70b 100644 --- a/UPGRADE-0.11.md +++ b/UPGRADE-0.11.md @@ -134,12 +134,12 @@ UPGRADE FROM 0.10 to 0.11 ``` ### Type autoMapping and Symfony DI `autoconfigure` - When using these functionality, type will be accessible only by FQCN in schema definition, - (if class not implementing `Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface`). + When using these functionalities, type will be accessible only by FQCN in schema definition + (if class doesn't implement `Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface`). So if you want to use the `true` type name don't forget to declare it as an alias using interface. - This change is for a performance mater types are lazy loaded. + This change is to increase performance, types are lazy-loaded. - example: + Here's an example: ```php rootValue` and - `$context === $value` in root query resolver. That for the reason why uploaded files was accessible in + `$context === $value` in root query resolver. Because of this, uploaded files was accessible in `$context['request_files']` and `$info->rootValue['request_files']`. **Since 0.11** `context` is of type `ArrayObject` and `rootValue` has no typeHint (default: `null`) so `$context !== $info->rootValue` and `$context !== $value` in root query resolver. - Uploaded files is no more accessible under `$info->rootValue['request_files']` out of the box. + Uploaded files is no longer accessible under `$info->rootValue['request_files']` out of the box. ### Change fluent resolvers id - The use of class name as prefix of fluent resolver id remove the possibility to use same class as 2 different services. + The use of class name as prefix of fluent resolver id removes the possibility to use same class as 2 different services. See issue [#296](https://github.com/overblog/GraphQLBundle/issues/296) for more detail - That's the reason why starting v0.11 we are using service id as prefix (like in Symfony 4.1)... + Because of this, in v0.11 we are using service id as prefix (like in Symfony 4.1)... Example: ```yaml