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
Copy file name to clipboardExpand all lines: core/security.md
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,18 @@ section.
6
6
Using API Platform, you can leverage all security features provided by the [Symfony Security component](http://symfony.com/doc/current/book/security.html).
7
7
For instance, if you wish to restrict the access of some endpoints, you can use [access controls directives](http://symfony.com/doc/current/book/security.html#securing-url-patterns-access-control).
8
8
9
-
You can also add security directly in the entity using the [Symfony's access control expressions](https://symfony.com/doc/current/expressions.html#security-complex-access-controls-with-expressions).
10
-
Here is a little exemple for this :
9
+
Since 2.1, you can add security through [Symfony's access control expressions](https://symfony.com/doc/current/expressions.html#security-complex-access-controls-with-expressions) in your entities.
11
10
12
-
```php
11
+
Here is an example:
13
12
13
+
```php
14
14
use ApiPlatform\Core\Annotation\ApiResource;
15
15
use Doctrine\ORM\Mapping as ORM;
16
16
use Symfony\Component\Validator\Constraints as Assert;
0 commit comments