| @@ -44,10 +44,22 @@ | ||
| 44 | 44 | public function forward( array $prepared, callable $forward ) { |
| 45 | 45 | return $forward( $prepared['method'], $prepared['route'], $prepared['payload'] ); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - /** No-op for pass-through persistence. */ | |
| 49 | - public function persist( string $phase, int $id, array $payload, array $current = array(), array $response_data = array(), array $context = array() ): void { | |
| 48 | + /** No-op after create for pass-through collections. */ | |
| 49 | + public function after_create( int $id, array $payload ): void { | |
| 50 | + } | |
| 51 | + | |
| 52 | + /** No-op after identity for pass-through collections. */ | |
| 53 | + public function after_identity( int $id, array $payload ): void { | |
| 54 | + } | |
| 55 | + | |
| 56 | + /** No-op after recovery for pass-through collections. */ | |
| 57 | + public function after_recovery( int $id, array $payload ): void { | |
| 58 | + } | |
| 59 | + | |
| 60 | + /** No-op after update for pass-through collections. */ | |
| 61 | + public function after_update( int $id, array $payload, array $current, array $response_data, array $context ): void { | |
| 50 | 62 | } |
| 51 | 63 | |
| 52 | 64 | /** Delete a generic collection record, honouring the envelope's `force` flag. */ |
| 53 | 65 | public function delete( array $meta, int $id, array $mutation, callable $dispatch, callable $can_delete ) { |