9.5 API: Update QueryExtension Signatures
Overview of Changes
API Platform 2.x
API Platform 4.x
1. Identify Files to Migrate
2. Update Method Signatures
Signature Changes
3. Example Migrations
Example 1: Extension That Applies to All Operations
Example 2: Extension That Checks Operation Name
Example 3: Item Extension
Example 4: Extension Implementing Both Interfaces
4. Common Operation Name Check Patterns
Check if operation matches specific name:
Check if operation is NOT a specific name:
Check if operation exists:
Check multiple operations:
5. Service Registration
6. Validate Changes
Important Notes
Additional Operation Methods
Reference
Previous9.4 API: Migrate DataPersister to StateProcessorNext9.6 API: Migrate DataTransformer to SerializerContextBuilder
Last updated
Was this helpful?
