← All changes
|
includes/Interfaces/Collection_Writer_Interface.php
+2
-11
1.10.19
→
1.10.18
View file →
| @@ -39,19 +39,10 @@ | ||
| 39 | 39 | |
| 40 | 40 | /** Forward a prepared write within collection hooks. */ |
| 41 | 41 | public function forward( array $prepared, callable $forward ); |
| 42 | 42 | |
| 43 | - /** After the wc/v3 create returned an id, before the client UUID is proven on it. */ | |
| 44 | - public function after_create( int $id, array $payload ): void; | |
| 45 | - | |
| 46 | - /** After the client UUID is proven on the created record, before the mutation is finalized. */ | |
| 47 | - public function after_identity( int $id, array $payload ): void; | |
| 48 | - | |
| 49 | - /** On a retry that re-proves a poisoned create's identity, before it is finalized. */ | |
| 50 | - public function after_recovery( int $id, array $payload ): void; | |
| 51 | - | |
| 52 | - /** After a wc/v3 update succeeded, before the mutation is finalized. */ | |
| 53 | - public function after_update( int $id, array $payload, array $current, array $response_data, array $context ): void; | |
| 43 | + /** Persist collection data at a named create/update lifecycle phase. */ | |
| 44 | + public function persist( string $phase, int $id, array $payload, array $current = array(), array $response_data = array(), array $context = array() ): void; | |
| 54 | 45 | |
| 55 | 46 | /** Execute the collection-specific delete forward. */ |
| 56 | 47 | public function delete( array $meta, int $id, array $mutation, callable $dispatch, callable $can_delete ); |
| 57 | 48 | |