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
@@ -61,7 +61,7 @@ For convenience and to ease the upgrade path, these would still be available on
61
61
```php
62
62
<?php
63
63
64
-
#[Resource]
64
+
#[ApiResource]
65
65
class User {}
66
66
```
67
67
@@ -78,7 +78,7 @@ corresponding to
78
78
class User {}
79
79
```
80
80
81
-
Verbs declared on a PHP class define API Platform operations. The `Resource` attributes would become optional and the only thing needed is to specify at least a verb and an IRI representing the Resource. Some examples:
81
+
Verbs declared on a PHP class define API Platform operations. The `ApiResource` attributes would become optional and the only thing needed is to specify at least a verb and an IRI representing the Resource. Some examples:
82
82
83
83
<table>
84
84
<tr>
@@ -165,12 +165,12 @@ class User {
165
165
}
166
166
```
167
167
168
-
The `Resource` attribute could be used to set defaults properties on operations:
168
+
The `ApiResource` attribute could be used to set defaults properties on operations:
@@ -184,11 +184,14 @@ These properties can also be specified directly on the verb attribute:
184
184
class User {}
185
185
```
186
186
187
-
Internally, HTTP verbs are aliases to the Resource Attribute holding a method and a default path. The Resource Attribute is a reflection of the underlying metadata:
187
+
Internally, HTTP verbs are aliases to the Resource Attribute holding a method and a default path. The `ApiResource` attribute is a reflection of the underlying metadata:
0 commit comments