Error thrown

Call to undefined method WP_Widget_Factory::register()