<?php
 

 namespace DIPI\Modules\PriceListItem;
 
if ( ! defined( 'ABSPATH' ) ) {
    die( 'Direct access forbidden.' );
}

use ET\Builder\Framework\DependencyManagement\Interfaces\DependencyInterface;
use ET\Builder\Packages\ModuleLibrary\ModuleRegistration;
use DIPI\Modules\PriceListItem\PriceListItemTraits;
 
 
class PriceListItem implements DependencyInterface {
  public function load() {
    $module_json_folder_path = plugin_dir_path(__FILE__) . 'visual-builder';
    add_action(
      'init',
      function() use ( $module_json_folder_path ) {
        ModuleRegistration::register_module(
          $module_json_folder_path,
          [
            'render_callback' => [ PriceListItemTraits\RenderCallbackTrait::class, 'render_callback' ],
          ]
        );
      }
    );
  }
}