|
1 | 1 | # Upgrade from 1.4 to 2.0
|
2 | 2 |
|
| 3 | +### SonataAdmin Support |
| 4 | + |
| 5 | + * The Admin extensions where moved into `symfony-cmf/sonata-admin-integration-bundle`. |
| 6 | + With the move, the admin extension service names also changed. If you are using one of the routing extensions, |
| 7 | + you need to adjust your configuration. |
| 8 | + |
| 9 | + Before: |
| 10 | + |
| 11 | + ```yaml |
| 12 | + # app/config/config.yml |
| 13 | + |
| 14 | + sonata_admin: |
| 15 | + extensions: |
| 16 | + cmf_routing.admin_extension.route_referrers: |
| 17 | + implements: |
| 18 | + - Symfony\Cmf\Component\Routing\RouteReferrersInterface |
| 19 | + cmf_core.admin_extension.publish_workflow.time_period: |
| 20 | + implements: |
| 21 | + - Symfony\Cmf\Component\Routing\RouteReferrersReadInterface |
| 22 | + ``` |
| 23 | +
|
| 24 | + After: |
| 25 | + |
| 26 | + ```yaml |
| 27 | + # app/config/config.yml |
| 28 | + |
| 29 | + sonata_admin: |
| 30 | + extensions: |
| 31 | + cmf_sonata_admin_integration.routing.extension.route_referrers: |
| 32 | + implements: |
| 33 | + - Symfony\Cmf\Component\Routing\RouteReferrersInterface |
| 34 | + cmf_sonata_admin_integration.routing.extension.frontend_link: |
| 35 | + implements: |
| 36 | + - Symfony\Cmf\Component\Routing\RouteReferrersReadInterface |
| 37 | + ``` |
| 38 | + Admin service names also changed. If you are using the admin, you need to adjust your configuration, |
| 39 | + i.e. in the sonata dashboard: |
| 40 | + |
| 41 | + Before: |
| 42 | + |
| 43 | + ```yaml |
| 44 | + # app/config/config.yml |
| 45 | + sonata_admin: |
| 46 | + dashboard: |
| 47 | + groups: |
| 48 | + content: |
| 49 | + label: URLs |
| 50 | + icon: '<i class="fa fa-file-text-o"></i>' |
| 51 | + items: |
| 52 | + - cmf_routing.route_admin |
| 53 | + - cmf_routing.redirect_route_admin |
| 54 | + ``` |
| 55 | +
|
| 56 | + After: |
| 57 | + |
| 58 | + ```yaml |
| 59 | + # app/config/config.yml |
| 60 | + sonata_admin: |
| 61 | + dashboard: |
| 62 | + groups: |
| 63 | + content: |
| 64 | + label: URLs |
| 65 | + icon: '<i class="fa fa-file-text-o"></i>' |
| 66 | + items: |
| 67 | + - cmf_sonata_admin_integration.routing.route_admin |
| 68 | + - cmf_sonata_admin_integration.routing.redirect_route_admin |
| 69 | + ``` |
| 70 | +
|
3 | 71 | ## Route Model
|
4 | 72 |
|
5 | 73 | * Removed `getAddFormatPattern()`/`setAddFormatPattern()` from the model
|
|
0 commit comments