| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Permanent aliases for legacy unversioned and folded v2 WCPOS REST API class names. | |
| 3 | + * Permanent aliases for legacy WCPOS REST API class names. | |
| 4 | 4 | * |
| 5 | 5 | * WCPOS Pro and third-party extensions subclass these controllers by FQCN. |
| 6 | 6 | * Keep the old names as a permanent public API while implementations live in V1. |
| 7 | 7 | * |
| @@ -50,28 +50,8 @@ | ||
| 50 | 50 | 'WCPOS\WooCommercePOS\API\Traits\Product_Helpers' => 'WCPOS\WooCommercePOS\API\V1\Traits\Product_Helpers', |
| 51 | 51 | 'WCPOS\WooCommercePOS\API\Traits\Query_Helpers' => 'WCPOS\WooCommercePOS\API\V1\Traits\Query_Helpers', |
| 52 | 52 | 'WCPOS\WooCommercePOS\API\Traits\Uuid_Handler' => 'WCPOS\WooCommercePOS\API\V1\Traits\Uuid_Handler', |
| 53 | 53 | 'WCPOS\WooCommercePOS\API\Traits\WCPOS_REST_API' => 'WCPOS\WooCommercePOS\API\V1\Traits\WCPOS_REST_API', |
| 54 | - | |
| 55 | - // The wcpos/v2 service twins were folded into Controller_Registry in 1.10.19. | |
| 56 | - // It stamps every v2 entry, so subclasses registered through | |
| 57 | - // woocommerce_pos_rest_api_v2_controllers still answer under wcpos/v2. | |
| 58 | - // Outside the registry, a subclass inherits v1 and must set its own namespace. | |
| 59 | - 'WCPOS\WooCommercePOS\API\V2\Auth' => 'WCPOS\WooCommercePOS\API\V1\Auth', | |
| 60 | - 'WCPOS\WooCommercePOS\API\V2\Cashier' => 'WCPOS\WooCommercePOS\API\V1\Cashier', | |
| 61 | - 'WCPOS\WooCommercePOS\API\V2\Checkout_Controller' => 'WCPOS\WooCommercePOS\API\V1\Checkout_Controller', | |
| 62 | - 'WCPOS\WooCommercePOS\API\V2\Data_Order_Statuses_Controller' => 'WCPOS\WooCommercePOS\API\V1\Data_Order_Statuses_Controller', | |
| 63 | - 'WCPOS\WooCommercePOS\API\V2\Extensions' => 'WCPOS\WooCommercePOS\API\V1\Extensions', | |
| 64 | - 'WCPOS\WooCommercePOS\API\V2\Gateway_Bootstrap_Controller' => 'WCPOS\WooCommercePOS\API\V1\Gateway_Bootstrap_Controller', | |
| 65 | - 'WCPOS\WooCommercePOS\API\V2\Logs' => 'WCPOS\WooCommercePOS\API\V1\Logs', | |
| 66 | - 'WCPOS\WooCommercePOS\API\V2\Payment_Gateways' => 'WCPOS\WooCommercePOS\API\V1\Payment_Gateways', | |
| 67 | - 'WCPOS\WooCommercePOS\API\V2\Print_Jobs_Controller' => 'WCPOS\WooCommercePOS\API\V1\Print_Jobs_Controller', | |
| 68 | - 'WCPOS\WooCommercePOS\API\V2\Receipts_Controller' => 'WCPOS\WooCommercePOS\API\V1\Receipts_Controller', | |
| 69 | - 'WCPOS\WooCommercePOS\API\V2\Settings' => 'WCPOS\WooCommercePOS\API\V1\Settings', | |
| 70 | - 'WCPOS\WooCommercePOS\API\V2\Shipping_Methods_Controller' => 'WCPOS\WooCommercePOS\API\V1\Shipping_Methods_Controller', | |
| 71 | - 'WCPOS\WooCommercePOS\API\V2\Stores' => 'WCPOS\WooCommercePOS\API\V1\Stores', | |
| 72 | - 'WCPOS\WooCommercePOS\API\V2\Tax_Classes_Controller' => 'WCPOS\WooCommercePOS\API\V1\Tax_Classes_Controller', | |
| 73 | - 'WCPOS\WooCommercePOS\API\V2\Templates_Controller' => 'WCPOS\WooCommercePOS\API\V1\Templates_Controller', | |
| 74 | 54 | ); |
| 75 | 55 | |
| 76 | 56 | if ( isset( $aliases[ $class ] ) ) { |
| 77 | 57 | class_alias( $aliases[ $class ], $class ); |