Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit ea9a009

Browse files
authored
Merge pull request #280 from symfony-cmf/upgrade_file
more and deeper information for upgrade file
2 parents 10d5de3 + 8c8d74a commit ea9a009

File tree

1 file changed

+66
-3
lines changed

1 file changed

+66
-3
lines changed

UPGRADE-2.1.md

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,72 @@
11
# Upgrade from 2.0 to 2.1
22

3-
## Sonata Admin
3+
### SonataAdmin Support
44

5-
* All Sonata Admin integration has been removed. The integration is now
6-
available via the CmfSonataAdminIntegrationBundle.
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 menu 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_menu.admin_extension.menu_options:
17+
implements:
18+
- Symfony\Cmf\Bundle\MenuBundle\Model\MenuOptionsInterface
19+
cmf_menu.admin_extension.menu_node_referrers:
20+
implements:
21+
- Symfony\Cmf\Bundle\MenuBundle\Model\MenuNodeReferrersInterface
22+
```
23+
24+
After:
25+
26+
```yaml
27+
# app/config/config.yml
28+
29+
sonata_admin:
30+
extensions:
31+
cmf_sonata_admin_integration.menu.extension.menu_options:
32+
implements:
33+
- Symfony\Cmf\Bundle\MenuBundle\Model\MenuOptionsInterface
34+
cmf_sonata_admin_integration.menu.extension.menu_node_referrers:
35+
implements:
36+
- Symfony\Cmf\Bundle\MenuBundle\Model\MenuNodeReferrersInterface
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_menu.menu_admin
53+
- cmf_menu.node_admin
54+
```
55+
56+
After:
57+
58+
```yaml
59+
# app/config/config.yml
60+
sonata_admin:
61+
dashboard:
62+
groups:
63+
content:
64+
label: Menu
65+
icon: '<i class="fa fa-file-text-o"></i>'
66+
items:
67+
- cmf_sonata_admin_integration.menu.menu_admin
68+
- cmf_sonata_admin_integration.menu.node_admin
69+
```
770
871
## Model
972

0 commit comments

Comments
 (0)