Skip to content

Commit c8ab579

Browse files
committed
Document migration to CategoryAddFormBuilderForm
Closes #456
1 parent fc337ad commit c8ab579

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/migration/wsc60/php.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,27 @@ return WCF::getTPL()->fetch('templateName', 'application', [
122122
```
123123

124124
See [WoltLab/WCF#5910](https://github.com/WoltLab/WCF/issues/5910) for more details.
125+
126+
## Creating Categories Based on the Formbuilder
127+
128+
A new basic implementation based on the FormBuilder for creating and editing categories has been introduced.
129+
The old implementation (`AbstractCategoryAddForm`) remains for backward compatibility reasons, but has been deprecated.
130+
131+
Usage (form for creating categories):
132+
133+
```php
134+
class FooBarCategoryAddForm extends CategoryAddFormBuilderForm {
135+
public string $objectTypeName = 'foo.bar.category';
136+
}
137+
```
138+
139+
Usage (form for editing categories):
140+
141+
```php
142+
class FooBarCategoryEditForm extends FooBarCategoryAddForm {
143+
public $formAction = 'edit';
144+
}
145+
```
146+
147+
See [WoltLab/WCF#5657](https://github.com/WoltLab/WCF/pull/5657
148+
) for more details.

0 commit comments

Comments
 (0)