Skip to content

Commit 0251a11

Browse files
dupuchbadunglas
authored andcommitted
Docs: Correct and update doc about operation disabling
1 parent 59aeb02 commit 0251a11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Resources/doc/operations.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ By default, the following operations are automatically enabled:
2020

2121
## Disabling operations
2222

23-
If you want to disable some operations (e.g. the `DELETE` operation), you must register manually applicable operations using
24-
the operation factory class, `Dunglas\ApiBundle\Resource::addCollectionOperation()` and `Dunglas\ApiBundle\Resource::addCollectionOperation()`
25-
methods.
23+
If you want to disable some operations (e.g. the `DELETE` operation), you must create manually applicable operations using
24+
the operation factory class, `Dunglas\ApiBundle\Api\Operation\OperationFactory::createCollectionOperation()` or/and `Dunglas\ApiBundle\Api\Operation\OperationFactory::createItemOperation()` methods and then, register it in the resource with `Dunglas\ApiBundle\Api/Resource::initCollectionOperations` or/and `Dunglas\ApiBundle\Api/Resource::initItemOperations`.
2625

2726
The following `Resource` definition exposes a `GET` operation for it's collection but not the `POST` one:
2827

0 commit comments

Comments
 (0)