Error thrown

Class 'WP_REST_Controller' not found