<?php

trait InventoryLibTrait
{
    private $inventoryLib = null;

    protected function loadInventoryLib(): void
    {
        $inventoryBridgePath = FCPATH . '/api/modules/inventory/autoload-no-controllers.php';
        if (file_exists($inventoryBridgePath) && (include_once $inventoryBridgePath) && class_exists('InventoryLib')) {
            $this->inventoryLib = new InventoryLib(new VariablesDictionaryModel());
        }
    }
}
