Skip to content

Commit 3269fe3

Browse files
authored
Merge pull request #203 from jon1328/typos
correct a few typos
2 parents 422f9fd + 09afb24 commit 3269fe3

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

core/data-providers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For a given resource, you can implement two kind of interfaces:
1717
* the [`ItemDataProviderInterface`](https://github.com/api-platform/core/blob/master/src/DataProvider/ItemDataProviderInterface.php)
1818
is used when fetching items.
1919

20-
In the following examples we will create custom data providers for an entity class class called `AppBundle\Entity\BlogPost`.
20+
In the following examples we will create custom data providers for an entity class called `AppBundle\Entity\BlogPost`.
2121

2222
## Custom Collection Data Provider
2323

core/operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ together.
306306
Here we consider that DunglasActionBundle is installed (the default when using the API Platform distribution). This
307307
action will be automatically registered as a service (the service name is the same as the class name: `AppBundle\Action\BookSpecial`).
308308

309-
API Platform automatically retrieve the appropriate PHP entity then then deserializes it, and for `POST` and `PUT` requests
309+
API Platform automatically retrieves the appropriate PHP entity then deserializes it, and for `POST` and `PUT` requests
310310
updates the entity with data provided by the user.
311311

312312
Services (`$myService` here) are automatically injected thanks to the autowiring feature. You can type-hint any service

core/pagination.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ api_platform:
5252
5353
## Disabling the Pagination
5454
55-
Paginating collection is generally accepted as a good practice. It also allows browsing large collections without to much
55+
Paginating collections is generally accepted as a good practice. It allows browsing large collections without too much
5656
overhead as well as preventing [DOS attacks](https://en.wikipedia.org/wiki/Denial-of-service_attack).
57-
It allows to browse large collections and prevent. However, for small collections, it can be convenient to fully disable
58-
the pagination.
57+
However, for small collections, it can be convenient to fully disable the pagination.
5958
6059
### Globally
6160

distribution/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,12 @@ Oops, we missed to add the title. But submit the request anyway. You should get
436436

437437
Did you notice that the error was automatically serialized in JSON-LD and respect the Hydra Core vocabulary for errors?
438438
It allows the client to easily extract useful information from the error. Anyway, it's bad to get a SQL error when submitting
439-
a request. It means that we doesn't use a valid input, and [it's a very bad and dangerous practice](https://www.owasp.org/index.php/Input_Validation_Cheat_Sheet).
439+
a request. It means that we didn't use a valid input, and [it's a very bad and dangerous practice](https://www.owasp.org/index.php/Input_Validation_Cheat_Sheet).
440440

441441
API Platform comes with a bridge with [the Symfony Validator Component](http://symfony.com/doc/current/validation.html).
442442
Adding some of [its numerous validation constraints](http://symfony.com/doc/current/validation.html#supported-constraints)
443443
(or [creating custom ones](http://symfony.com/doc/current/validation/custom_constraint.html)) to our entities is enough
444-
to get validate user submitted data. Let's add some validation rules to our data model:
444+
to validate user submitted data. Let's add some validation rules to our data model:
445445

446446
```php
447447
<?php

0 commit comments

Comments
 (0)