<?php

namespace MovieEngine\Widgets;

if (! defined("ABSPATH")) {
    exit; // Exit if accessed directly
}

/**
 * Main Widgets Class
 */
class Widgets {

    public function __construct() {
        add_action('widgets_init', [$this, 'register_widgets']);
    }

    /**
     * Register all MovieEngine widgets
     */
    public function register_widgets() {
        register_widget('\MovieEngine\Widgets\TrendingMovies');
        register_widget('\MovieEngine\Widgets\RecentEpisodes');
        register_widget('\MovieEngine\Widgets\GenresWidget');
        register_widget('\MovieEngine\Widgets\TopRatedMovies');
        register_widget('\MovieEngine\Widgets\WatchlistWidget');
        register_widget('\MovieEngine\Widgets\RecentReviews');
        register_widget('\MovieEngine\Widgets\RandomMovie');
    }
}
