Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions website/docs/annotations-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Attributes reference
sidebar_label: Attributes reference
---

Note: all annotations are available in PHP 8 attribute format (`#[Query]`), support of Doctrine annotation format was dropped.
See [Doctrine annotations vs PHP 8 attributes](doctrine-annotations-attributes.mdx) for more details.
All attributes use PHP 8 native attribute syntax (e.g., `#[Query]`). The legacy Doctrine annotations format (`@Query`) is no longer supported.
See [migrating from Doctrine annotations to PHP 8 attributes](doctrine-annotations-attributes.mdx) for details.

Attributes are listed in alphabetical order.

Expand All @@ -21,7 +21,7 @@ It is available out of the box if you use the Symfony bundle.
Attribute | Compulsory | Type | Definition
---------------|------------|------|--------
*for* | *yes* | string | The name of the PHP parameter
*constraint* | *yes | annotation | One (or many) Symfony validation attributes.
*constraint* | *yes | attribute | One (or many) Symfony validation attributes.

## #[Autowire]

Expand Down Expand Up @@ -294,7 +294,7 @@ description | *no* | string | Description of the subscription in the do
## #[Type]

The `#[Type]` attribute is used to declare a GraphQL object type. This is used with standard output
types, as well as enum types. For input types, use the [#[Input] attribute](#input-annotation) directly on the input type or a [#[Factory] attribute](#factory-annotation) to make/return an input type.
types, as well as enum types. For input types, use the [#[Input] attribute](#input) directly on the input type or a [#[Factory] attribute](#factory) to make/return an input type.

**Applies on**: classes.

Expand Down
4 changes: 2 additions & 2 deletions website/docs/authentication-authorization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ queries/mutations/subscriptions or fields reserved to some users.
GraphQLite offers some control over what a user can do with your API. You can restrict access to
resources:

- based on authentication using the [`#[Logged]` attribute](#logged-and-right-annotations) (restrict access to logged users)
- based on authorization using the [`#[Right]` attribute](#logged-and-right-annotations) (restrict access to logged users with certain rights).
- based on authentication using the [`#[Logged]` attribute](#logged-and-right-attributes) (restrict access to logged users)
- based on authorization using the [`#[Right]` attribute](#logged-and-right-attributes) (restrict access to logged users with certain rights).
- based on fine-grained authorization using the [`#[Security]` attribute](fine-grained-security.mdx) (restrict access for some given resources to some users).

<div class="alert alert--info">
Expand Down
2 changes: 1 addition & 1 deletion website/docs/fine-grained-security.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: Fine grained security
---


If the [`#[Logged]` and `#[Right]` attributes](authentication-authorization.mdx#logged-and-right-annotations) are not
If the [`#[Logged]` and `#[Right]` attributes](authentication-authorization.mdx#logged-and-right-attributes) are not
granular enough for your needs, you can use the advanced `#[Security]` attribute.

Using the `#[Security]` attribute, you can write an *expression* that can contain custom logic. For instance:
Expand Down
2 changes: 1 addition & 1 deletion website/docs/queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ As you can see, GraphQLite will automatically do the mapping between PHP types a

GraphQLite relies a lot on attributes.

It supports the new PHP 8 attributes (`#[Query]`), the "Doctrine annotations" style (`#[Query]`) was dropped.
GraphQLite uses native PHP 8 attribute syntax (e.g., `#[Query]`). The legacy "Doctrine annotations" style (`@Query`) is no longer supported.

## Testing the query

Expand Down
Loading