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
docs: rename annotations-reference to attributes-reference
Doctrine annotation support was dropped in #677; the page's body has
been calling these "attributes" for a long time. Bring the filename
and URL slug in line so the whole stack uses consistent terminology.
What changed
- website/docs/annotations-reference.md → attributes-reference.md
(plus frontmatter `id` and sidebars.json entry)
- versioned_docs/version-8.0.0/ gets the same rename since 8.0.0 is
the current stable release served at `/docs/annotations-reference`.
Older versioned_docs are frozen snapshots and are left untouched.
- versioned_sidebars/version-8.0.0-sidebars.json updated to match.
- Incoming link in authentication-authorization.mdx updated (both
the `next` and v8.0.0 copies).
- CHANGELOG.md and migrating.md link paths updated (both copies).
Anchor fragments were already stale (sections were renamed from
`## @input annotation` → `## #[Input]` long ago); repointed them at
the current slugs where the anchor identifies the attribute
unambiguously, and stripped the dead `-annotation` suffix.
Backwards compatibility
- Added `@docusaurus/plugin-client-redirects` (pinned to the existing
2.4.3 line) with a single rule: `/docs/annotations-reference` →
`/docs/attributes-reference`. External inbound links keep working
(meta-refresh + JS redirect, preserves the URL fragment).
Remaining prose cleanup
While touching this area, also fixed a few stale "annotation" prose
references that the Doctrine removal missed:
- custom-types.mdx: "in the following annotations:" → "attributes:"
- semver.md: "through its annotations"/"custom annotations" → attributes
- argument-resolving.md: stale `@Autowire annotation` and related
wording in the parameter-middleware example
Verified via `yarn build`: site compiles clean, redirect HTML emitted
at build/docs/annotations-reference/index.html pointing at the new
canonical URL.
Copy file name to clipboardExpand all lines: website/docs/CHANGELOG.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,8 +181,8 @@ public function toGraphQLInputType(Type $type, ?InputType $subType, string $argu
181
181
182
182
### New features
183
183
184
-
-[@Input](annotations-reference.md#input-annotation) annotation is introduced as an alternative to `#[Factory]`. Now GraphQL input type can be created in the same manner as `#[Type]` in combination with `#[Field]` - [example](input-types.mdx#input-attribute).
185
-
- New attributes has been added to [@Field](annotations-reference.md#field-annotation) annotation: `for`, `inputType` and `description`.
184
+
-[@Input](attributes-reference.md#input) annotation is introduced as an alternative to `#[Factory]`. Now GraphQL input type can be created in the same manner as `#[Type]` in combination with `#[Field]` - [example](input-types.mdx#input-attribute).
185
+
- New attributes has been added to [@Field](attributes-reference.md#field) annotation: `for`, `inputType` and `description`.
186
186
- The following annotations now can be applied to class properties directly: `#[Field]`, `#[Logged]`, `#[Right]`, `@FailWith`, `@HideIfUnauthorized` and `#[Security]`.
0 commit comments