PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/asktraining.online/wp-content/plugins/gdpr-framework/src/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/asktraining.online/wp-content/plugins/gdpr-framework/src/SetupAdmin.php

<?php

namespace Codelight\GDPR;

use Codelight\GDPR\Admin\AdminError;
use Codelight\GDPR\Admin\AdminNotice;
use Codelight\GDPR\Admin\Modal;
use Codelight\GDPR\Admin\WordpressAdmin;
use Codelight\GDPR\Admin\WordpressAdminPage;
use Codelight\GDPR\Components\Consent\ConsentAdmin;
use Codelight\GDPR\Installer\Installer;
use Codelight\GDPR\Installer\AdminInstallerNotice;
use Codelight\GDPR\Admin\AdminPrivacySafe;

/**
 * Register and set up admin components.
 * This class is instantiated at admin_init priority 0
 *
 * Class SetupAdmin
 *
 * @package Codelight\GDPR
 */
class SetupAdmin
{
    /**
     * SetupAdmin constructor.
     */
    public function __construct()
    {
        $this->registerComponents();
        $this->runComponents();
    }

    /**
     * Register components in the container
     */
    protected function registerComponents()
    {
        gdpr()->singleton(WordpressAdmin::class);
        gdpr()->singleton(WordpressAdminPage::class);
        gdpr()->singleton(Installer::class);

        // Not a singleton.
        gdpr()->alias(AdminNotice::class, 'admin-notice');
        gdpr()->alias(AdminError::class, 'admin-error');
        gdpr()->alias(AdminInstallerNotice::class, 'installer-notice');
        gdpr()->alias(AdminPrivacySafe::class, 'privacy-safe');
        gdpr()->alias(Modal::class, 'admin-modal');
        gdpr()->alias(WordpressAdminPage::class, 'admin-page');

        gdpr()->bind(ConsentAdmin::class);
    }

    /**
     * Run components
     */
    protected function runComponents()
    {
        gdpr(WordpressAdmin::class);
        gdpr(WordpressAdminPage::class);
        gdpr(Installer::class);
        gdpr(ConsentAdmin::class);
    }
}