Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.64.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : Controller.php
<?php

namespace WeDevs\Dokan\Order;

use WeDevs\Dokan\Traits\ChainableContainer;

// don't call the file directly
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Handle permission related hooks for Orders
 *
 * @since 3.8.0
 */
class Controller {
    use ChainableContainer;

    /**
     * Class constructor
     *
     * @since 3.8.0
     */
    public function __construct() {
        $this->init_classes();
    }

    /**
     * Load required classes
     *
     * @return void
     */
    public function init_classes() {
        $this->container['hooks']          = new Hooks();
        $this->container['misc_hooks']     = new MiscHooks();
        $this->container['email_hooks']    = new EmailHooks();
        $this->container['cache']          = new OrderCache();
        $this->container['frontend_hooks'] = new Frontend\Hooks();
        $this->container['event_listener'] = new OrderEventListener();

        if ( is_admin() ) {
            $this->container['permission']  = new Admin\Permissions();
            $this->container['admin_hooks'] = new Admin\Hooks();
        }

        if ( wp_doing_ajax() ) {
            new Ajax();
        }
    }
}
© 2025 XylotrechusZ