|
1 | | -# Upgrading from 8.x to 9.0 |
2 | | - |
3 | | -9.0 is major release of AutoMapper. It brings a lot of new features and improvements. We recommend first [to check |
4 | | -the new documentation](./index.md) to see if the new features are useful for your project. |
5 | | - |
6 | | -If you upgrade from 8.x to 9.0, you will need to make some changes to your code, but most of existing behavior should |
7 | | -still work. |
8 | | - |
9 | | -## Bundle |
10 | | - |
11 | | -If you use the bundle, it is now integrated in the main package. You can remove the `jolicode/automapper-bundle` package from your |
12 | | -`composer.json` file. |
13 | | - |
14 | | -Then you have to use the new namespace for the bundle: |
15 | | - |
16 | | -```php |
17 | | -use AutoMapper\Symfony\Bundle\AutoMapperBundle; |
18 | | -``` |
19 | | - |
20 | | -You will also need to update the bundle configuration, see the [bundle documentation](./bundle/configuration.md) for more |
21 | | -information. |
22 | | - |
23 | | -## Custom Transformers |
24 | | - |
25 | | -The `CustomPropertyTransformerInterface` and `CustomModelTransformerInterface` have been removed in favor of the |
26 | | -`PropertyTransformerInterface` interface handling both case. |
27 | | - |
28 | | -See the [transformers documentation](./mapping/transformer.md#creating-a-custom-transformer) for more information. |
| 1 | +# Upgrading to 10.0 |
| 2 | + |
| 3 | +9.0 is major release of AutoMapper. It brings a lot of new features and improvements. We recommend first [to check |
| 4 | +the new documentation](../index.md) to see if the new features are useful for your project. |
| 5 | + |
| 6 | +If you upgrade from 8.x to 9.0, you will need to make some changes to your code, but most of existing behavior should |
| 7 | +still work. |
| 8 | + |
| 9 | +## Bundle |
| 10 | + |
| 11 | +If you use the bundle, it is now integrated in the main package. You can remove the `jolicode/automapper-bundle` package from your |
| 12 | +`composer.json` file. |
| 13 | + |
| 14 | +Then you have to use the new namespace for the bundle: |
| 15 | + |
| 16 | +```php |
| 17 | +use AutoMapper\Symfony\Bundle\AutoMapperBundle; |
| 18 | +``` |
| 19 | + |
| 20 | +You will also need to update the bundle configuration, see the [bundle documentation](../bundle/configuration.md) for more |
| 21 | +information. |
| 22 | + |
| 23 | +## Custom Transformers |
| 24 | + |
| 25 | +The `CustomPropertyTransformerInterface` and `CustomModelTransformerInterface` have been removed in favor of the |
| 26 | +`PropertyTransformerInterface` interface handling both case. |
| 27 | + |
| 28 | +See the [transformers documentation](../mapping/transformer.md#creating-a-custom-transformer) for more information. |
0 commit comments