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