You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete [`config/routes/annotations.yaml`](https://github.com/symfony/recipes/blob/main/doctrine/annotations/1.0/config/routes/annotations.yaml) if you haven't customised it.
If you have customized it, you have to move from `type: annotation` to `type: attribute`.
73
-
TODO: Any help or recommendation to provide to the reader? Rector?
73
+
If you have customized it,
74
+
you have to move from `type: annotation` to `type: attribute`.
74
75
75
76
The `config/routes.yaml` file should start with the following declaration from [its recipe](https://github.com/symfony/recipes/blob/main/symfony/routing/7.0/config/routes.yaml):
76
77
@@ -82,18 +83,13 @@ controllers:
82
83
type: attribute
83
84
```
84
85
85
-
- You can delete the file and let the recipe recreate it. Then, if you have customized it, merge with your previous version from your version system.
86
-
- Or edit the file and copy-paste the new declaration at top of it.
87
-
88
-
89
-
```bash
90
-
rm config/routes/annotations.yaml
91
-
rm config/routes.yaml
92
-
```
86
+
- You can delete the file and let the recipe recreate it.
87
+
Then, if you have eventually customized it, merge with your previous version from your version system.
88
+
- Or edit the file and copy-paste the new declaration on top of it.
93
89
94
90
### Remove GraphQL schema
95
91
96
-
4.6 GraphQL isn't compatible with 5.0 so delete it.
92
+
4.6 GraphQL schema isn't compatible with 5.0 so delete it, for example, with the following command:
97
93
98
94
```bash
99
95
rm -r config/graphql
@@ -106,6 +102,7 @@ rm -r config/graphql
106
102
[[= product_name =]] 5.0 is based on Symfony 7.3 and both must be updated.
107
103
Your development package must be updated as well.
108
104
The process example below considers [`symfony/debug-pack`](https://symfony.com/packages/Debug%20Pack) and `ibexa/rector` as installed.
105
+
Notice that it uses the `--no-update` option to only edit the composer.json, to not run package installation, and to not run scripts until all necessary changes are made.
109
106
110
107
=== "[[= product_name_headless =]]"
111
108
@@ -188,10 +185,10 @@ The process example below considers [`symfony/debug-pack`](https://symfony.com/p
188
185
You can now remove them from your composer.json
189
186
so you don't have to maintain which of their versions your composer.json is referring to.
190
187
191
-
TODO: Test the following command
188
+
For example, the following command removes several formerly LTS Update packages from `composer.json:
192
189
193
190
```bash
194
-
composer remove --no-update --no-scripts \
191
+
composer remove --no-update \
195
192
ibexa/connector-ai \
196
193
ibexa/collaboration \
197
194
ibexa/share \
@@ -223,7 +220,7 @@ To help moving from Symfony's Webpack Encore bundle 1.x to 2.x,
@@ -268,8 +265,6 @@ Your `auto-scripts` entry should look like this:
268
265
},
269
266
```
270
267
271
-
TODO: https://github.com/ibexa/recipes-dev/blob/master/ibexa/commerce/5.0/manifest.json#L168 VS https://github.com/ibexa/recipes/blob/master/ibexa/commerce/5.0/manifest.json#L168
272
-
273
268
#### Remove Ibexa Icons
274
269
275
270
Remove from your `config/bundles.php` the line about `IbexaIconsBundle`.
@@ -297,16 +292,14 @@ The main schema has changed and the provided SQL file `ibexa-4.6.latest-to-5.0.0
@@ -390,8 +383,6 @@ You can track the renaming in the `ibexa-4.6.latest-to-5.0.0.sql` file or below.
390
383
| ezuser_role | ibexa_user_role |
391
384
| ezuser_setting | ibexa_user_setting |
392
385
393
-
TODO: Something about renamed indexes?
394
-
395
386
??? note "DFS (Distributed File System)"
396
387
397
388
If [DFS IO handler](clustering.md#dfs-io-handler) is used and, as recommended, its table is on its own database, you'll have to rename table and columns there.
@@ -405,8 +396,6 @@ You can track the renaming in the `ibexa-4.6.latest-to-5.0.0.sql` file or below.
405
396
ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_mtime TO ibexa_dfs_file_mtime;
406
397
```
407
398
408
-
TODO: Compatibility "views" layers? Even if there is this layer to save time, it is recommended to update your code to use the new tables.
409
-
410
399
### Install new features' schemas
411
400
412
401
Features which were optional 4.6 LTS Updates are now part of 5.0.0.
Ensure your index are up to date with the following command:
496
+
497
+
```bash
507
498
php bin/console ibexa:reindex
508
499
```
509
500
@@ -641,13 +632,13 @@ module.exports = {
641
632
642
633
Install the tool dependencies once with the following command:
643
634
644
-
```
635
+
```bash
645
636
yarn --cwd ./vendor/ibexa/rector/js install
646
637
```
647
638
648
-
Run it:
639
+
Run it using the following command:
649
640
650
-
```
641
+
```bash
651
642
yarn --cwd ./vendor/ibexa/rector/js transform
652
643
```
653
644
@@ -707,9 +698,9 @@ You may have to update them in several places.
707
698
708
699
#### Update icons
709
700
710
-
The names of the provided icons have changed.
701
+
The names of the icons provided in `all-icons.svg` have changed.
711
702
`ibexa/rector` JavaScript Transform module's plugin `ibexa-rename-icons.js` deals with those changes in JavaScript.
712
-
You may have to update them in other contexts like config files associating icons to content types or page builder blocks.
703
+
You may have to update them in other contexts like, for example, config files associating icons to content types or page builder blocks.
713
704
714
705
You can find an [`ibexa-rename-icons` map in `vendor/ibexa/rector/js/rules.config.json` (`"old-name": "new-name"`)](https://github.com/ibexa/rector/blob/v5.0.0/js/rules.config.json#L63).
715
706
@@ -959,6 +950,8 @@ You can find an [`ibexa-rename-icons` map in `vendor/ibexa/rector/js/rules.confi
959
950
| warning | alert-warning |
960
951
| warning-triangle | alert-warning |
961
952
953
+
The following example illustrates the update of a custom page block's icon:
0 commit comments