<?php

/**
 * LoginAsUser Provider
 *
 * @package ArraySubs\Features\LoginAsUser
 * @since 1.0.0
 */

namespace ArraySubs\Features\LoginAsUser;

defined('ABSPATH') || exit;

use ArraySubs\Supports\Abstracts\AbstractLoader;

/**
 * Feature entry point.
 */
class Provider extends AbstractLoader
{
    /**
     * Constructor.
     */
    public function __construct()
    {
        $settings = arraysubs_get_settings();
        if (empty($settings['toolkit']['login_as_user'])) {
            return;
        }

        $this->classLoader([
            plugin_dir_path(__FILE__) . 'Services',
        ]);
    }
}
