← All changes
|
vendor/elementor/elementor-mcp-composer/src/Loader.php
+5
-1
4.3.0-beta1
→
4.3.2
View file →
| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | namespace Elementor\MCP\Composer; |
| 4 | 4 | |
| 5 | 5 | use Elementor\MCP\Composer\Admin\ConsentController; |
| 6 | 6 | use Elementor\MCP\Composer\Admin\CredentialsController; |
| 7 | +use Elementor\MCP\Composer\Admin\McpSettingsController; | |
| 7 | 8 | use Elementor\MCP\Composer\Admin\TestController; |
| 8 | 9 | |
| 9 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | 11 | exit; // Exit if accessed directly. |
| @@ -32,9 +33,9 @@ | ||
| 32 | 33 | * @return void |
| 33 | 34 | */ |
| 34 | 35 | public static function define_constants(): void { |
| 35 | 36 | if ( ! defined( 'ELEMENTOR_MCP_COMPOSER_VERSION' ) ) { |
| 36 | - define( 'ELEMENTOR_MCP_COMPOSER_VERSION', '1.0.10' ); | |
| 37 | + define( 'ELEMENTOR_MCP_COMPOSER_VERSION', '1.0.17' ); | |
| 37 | 38 | } |
| 38 | 39 | |
| 39 | 40 | if ( ! defined( 'ELEMENTOR_MCP_ONBOARDING_FASTLANE' ) ) { |
| 40 | 41 | define( 'ELEMENTOR_MCP_ONBOARDING_FASTLANE', true ); |
| @@ -71,8 +72,11 @@ | ||
| 71 | 72 | * |
| 72 | 73 | * @return void |
| 73 | 74 | */ |
| 74 | 75 | public static function register_rest_routes(): void { |
| 76 | + $mcp_settings_controller = new McpSettingsController(); | |
| 77 | + $mcp_settings_controller->register_routes(); | |
| 78 | + | |
| 75 | 79 | $fastlane_mode = defined( 'ELEMENTOR_MCP_ONBOARDING_FASTLANE' ) && ELEMENTOR_MCP_ONBOARDING_FASTLANE; |
| 76 | 80 | |
| 77 | 81 | if ( ! $fastlane_mode ) { |
| 78 | 82 | $consent_controller = new ConsentController(); |